Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Find maximum in matrix and show

3 visualizzazioni (ultimi 30 giorni)
martin martin
martin martin il 16 Giu 2019
Chiuso: MATLAB Answer Bot il 20 Ago 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

Risposte (1)

Star Strider
Star Strider il 16 Giu 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);

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by