[Scilab-users] add value to each element of an array, also to an empty one

Erhy erhard.glueck.austria at gmail.com
Fri Mar 24 20:36:42 CET 2017


Hello!
Again a basic question.
e.g.
A =  [ 1 2 3 ];
I = find( A > 10);
if length(I) > 0 then
	I = I + 1;
end

Is there a alternative
*without the if ?*

I miss the .+ operator.

Thank you  



--
View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list