Finding the max of certain columns

1 visualización (últimos 30 días)
Kalpha.mc
Kalpha.mc el 20 de Sept. de 2020
Editada: Ameer Hamza el 20 de Sept. de 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?

Respuestas (1)

Ameer Hamza
Ameer Hamza el 20 de Sept. de 2020
Editada: Ameer Hamza el 20 de Sept. de 2020
M % 4x7 matrix
x = max(M(:,[2 3 4])); % 1x3 vector of max values

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by