[Scilab-users] getting the first column number of each row

fujimoto2005 fujimoto2005 at gmail.com
Mon Nov 30 06:54:33 CET 2015


I want to get the first column number of each row with %T.
Now I use loop as follows.

x=rand(10,10);
for i=1 :10
	y(i)=min(find(x(i,:)>0.5);
end

Is there any way to get  y without using 'for end' loop because it will take
a time when row number is large .

Best regards.




--
View this message in context: http://mailinglists.scilab.org/getting-the-first-column-number-of-each-row-tp4033132.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list