[Scilab-users] max of matric colums - vectorization

Paul Carrico paul.carrico at free.fr
Thu Dec 13 23:14:29 CET 2012


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))

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121213/99824e26/attachment.htm>


More information about the users mailing list