Filter löschen
Filter löschen

Finding the max of certain columns

1 Ansicht (letzte 30 Tage)
Kalpha.mc
Kalpha.mc am 20 Sep. 2020
Bearbeitet: Ameer Hamza am 20 Sep. 2020
I have a 4x7 matrix and i am trying to find the max of the 2nd 3rd and 4th column to create a 1x3 matrix how would i do that?

Antworten (1)

Ameer Hamza
Ameer Hamza am 20 Sep. 2020
Bearbeitet: Ameer Hamza am 20 Sep. 2020
M % 4x7 matrix
x = max(M(:,[2 3 4])); % 1x3 vector of max values

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by