min value of each row with corresponding column
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
M
am 1 Nov. 2023
Beantwortet: Dyuman Joshi
am 1 Nov. 2023
How to do the following?
If there are three columns and I want to get the min value of each row and I want to know from which column was this value
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 1 Nov. 2023
y = magic(3)
%Utilize the functionality of min()
[m,idx] = min(y, [], 2)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!