<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <font face="Courier New">Heinz,<br>
      <br>
      It isn't clear what you need, I don't underastand the relationship
      between EE and E.<br>
      <br>
      Except for the first 0 in E, it seems that each consecutive number
      n is repeated n+1 times up to the number indicated by the first
      component of EE. Is this what you are looking for?<br>
      <br>
      This is a simple (though not very efficient) way of attaining
      that:<br>
      <br>
      m = EE(1);<br>
      E = []; //or E = 0 if the first 0 is really needed<br>
      for k=0:m<br>
         E = [E, k*ones(1, k+1)];<br>
      end<br>
      <br>
      Regards.<br>
      <br>
      Federico Miyara    <br>
    </font><br>
    <div class="moz-cite-prefix">On 07/02/2022 14:35, Heinz Nabielek
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:33C03EA0-D7FF-470F-83CE-55FA7E7DA733@me.com">
      <pre class="moz-quote-pre" wrap="">Sorry, colleagues  -   please help, I have just a mental blockade.

Given vector EE= [3 5 8]

I want to create a stepwise increasing vector E= [0 0 1 1 2 2 2 3 3 3 3]

And would need a system that works for much larger numbers....

Probably dead easy?
Heinz

_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>

</pre>
    </blockquote>
    <br>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>           </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>