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

Jan-Åge Langeland j-lan at online.no
Mon Nov 30 12:52:00 CET 2015


[a y]=max(int8(x>.5),'c');

JÅ


On 30.11.2015 06:54, fujimoto2005 wrote:
> 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.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
>




More information about the users mailing list