Selecting maximum values from every column in a matrix

3 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by