Magnitude, row and column in a Matrix
Ältere Kommentare anzeigen
Good Morning.
I have a matrix A
A = [87.97 87.97 17.97
95.22 87.96 91.26
75.50 75.50 75.50
78.13 64.89 78.90];
What instructions should I do to get
Minimum value per column
The line and column of that value
The result would be:
magnitude 75.50 64.89 17.97
row 3 4 1
column 1 2 3
Greetings and thanks
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 22 Jan. 2020
0 Stimmen
Use the two output form of min(). The second output will be the appropriate row numbers.
3 Kommentare
Ricardo Gutierrez
am 22 Jan. 2020
Walter Roberson
am 23 Jan. 2020
The column number is 1:number of columns
Ricardo Gutierrez
am 23 Jan. 2020
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!