Info

This question is closed. Reopen it to edit or answer.

I have a random numbers and I need to find the return vector of the maximum number from each column.In other words,A=rand(100), how can I find the he maximum number from each column

1 view (last 30 days)
I have a random numbers and I need to find the return vector of the maximum number from each column.In other words,A=rand(100), how can I find the he maximum number from each column

Answers (1)

Image Analyst
Image Analyst on 8 Jan 2015
Did you look up the max() function in the help? It couldn't get much easier:
maxesOfA = max(A)
  2 Comments
Guillaume
Guillaume on 8 Jan 2015
Have you tried Image Analyst's answer? Have you looked at the documentation of max?
In what way does it not do what you want?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!