[Scilab-users] max of matric colums - vectorization

Paul Carrico paul.carrico at free.fr
Fri Dec 14 09:44:35 CET 2012


Right thanks

 

De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org]
De la part de Eric Dubois
Envoyé : vendredi 14 décembre 2012 08:03
À : International users mailing list for Scilab.
Objet : Re: [Scilab-users] max of matric colums - vectorization

 

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/b2cae10a/attachment.htm>


More information about the users mailing list