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

Erhy erhard.glueck.austria at gmail.com
Wed Mar 22 23:15:39 CET 2017


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?

Thank you
Erhy



--
View this message in context: http://mailinglists.scilab.org/add-number-arrays-efficiently-how-tp4035946.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list