MATLAB Answers

Selecting maximum values from every column in a matrix

4 views (last 30 days)
Alexander
Alexander on 11 Mar 2013
Hi,
I have a matrix of values and would like to select the highest value in every column and save it into a 1D array. Any help would be appreciated.
Cheers,
Alex

  0 Comments

Sign in to comment.

Accepted Answer

Vishal Rane
Vishal Rane on 11 Mar 2013
Edited: Vishal Rane on 11 Mar 2013
Assuming
a = [11 2 3; 4 52 6; 7 8 92];
max(a)
gives exactly what you need.
Refer max()

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

No tags entered yet.

Products


Translated by