Heinz,
It isn't clear what you need, I don't underastand the relationship between EE and E.
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?
This is a simple (though not very efficient) way of attaining that: m = EE(1); E = []; //or E = 0 if the first 0 is really needed for k=0:m E = [E, k*ones(1, k+1)]; end Regards. Federico Miyara On 07/02/2022 14:35, Heinz Nabielek wrote:
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 users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
-- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users