Selecting value from matrix

1 visualizzazione (ultimi 30 giorni)
Euan
Euan il 24 Nov 2011
I have a matrix as in the one below
C = 1 3 5 7
4 6 8 1
5 6 9 2
Each column has 3 values. I would like to find the maximum value from each column so
5 6 9 7
Then find the minimum of these, 5
So far the best way I have found is D=max(C) which returns D=5 6 9 7 then find min(D) which returns the value I would like, 5. Is there an easier way to do this?
Thanks
  2 Commenti
Euan
Euan il 24 Nov 2011
That's an improvement. Thank you

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Matrix Decomposition in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by