[Scilab-users] add number arrays efficiently, how?

Samuel Gougeon sgougeon at free.fr
Thu Mar 23 00:28:00 CET 2017


Le 22/03/2017 à 23:15, Erhy a écrit :
> Hello!
> I'm thinking in arrays - and I write
>
> SumArr = [ 1 2 3 ];  toAdd = [ 7 8 9 10 ];
> SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = toAdd;
>
> How to code it smarter?

SumArr = [SumArr toAdd]




More information about the users mailing list