[Scilab-users] add value to each element of an array, also to an empty one
Samuel Gougeon
sgougeon at free.fr
Fri Mar 24 21:22:54 CET 2017
Le 24/03/2017 à 21:08, Erhy a écrit :
> Samuel GOUGEON wrote
>> 1. length(I)==0 means I==[] and then I+1 == []+1 ==[] as if nothing
> But in my examples
> I = [];
> Iplus = I + 1;
> then Iplus is 1
Not in Scilab 6, for the time being. I assumed that you were using Scilab 6.
In Scilab 5: i know nothing simpler than testing if I~=[]
More information about the users
mailing list