[Scilab-users] unexpected result

Carrico, Paul paul.carrico at auxitrolweston.com
Wed May 22 09:51:01 CEST 2019


Hi All,

In the following code, I was thinking that the provided index was the one on the "global" matrix, but I was wrong :)
(I guess a copy is performed first in order to be more efficient and to speed-up the calculation)

Paul

n = 10;
B = ones(n,1);
i = 6;
B(i,1)=0.55;
a1 = find(B(:,1) < 1); disp(a1);
a2 = find(B(i-1:$,1) < 1); disp(a2);



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190522/3c89cf13/attachment.htm>


More information about the users mailing list