Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Find maximum in matrix and show

1 Ansicht (letzte 30 Tage)
martin martin
martin martin am 16 Jun. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hello guys,
I would have a question - If I have a matrix of numbers for example 50x50 (rows, columns) and matrix changes values for example 50 times - how can I plot position of these 50 maximums?
Thanks for some ideas

Antworten (1)

Star Strider
Star Strider am 16 Jun. 2019
If I understand correctly what you want to do, use the max (link) function.
To get the maximum of every column of your matrix ‘M’:
colmax = max(M);
To get the maximum of every row:
rowmax = max(M,[],2);

Community Treasure Hunt

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

Start Hunting!

Translated by