[Scilab-users] max of matric colums - vectorization

Eric Dubois grocer.toolbox at gmail.com
Fri Dec 14 08:03:23 CET 2012


Maybe max(A,'r') is what you atd looking for.

Éric
Le 13 déc. 2012 23:14, "Paul Carrico" <paul.carrico at free.fr> a écrit :

> All,****
>
> ** **
>
> Maybe I’m too tired to find a so easy solution, but I don’t understand why
> the code herebellow does not work .. I want to find the max of each column
> while each I’ve the max of the complete matrix (???)****
>
> ** **
>
> i is a vector ????****
>
> ** **
>
> Paul****
>
> ** **
>
> #####################****
>
> *A** = rand(5,20)*
>
> *i**=**[**1** : 20]*
>
> * *
>
> *B**=**zeros**(**1**,**20**)***
>
> *B**(**i**)** = max(A(:,i))*
>
> ** **
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121214/0ac5c5aa/attachment.htm>


More information about the users mailing list