I have a .xls file that I have imported and I am needing to remove the min number from each row. going down by each row.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Joshua
am 1 Mär. 2023
Kommentiert: Walter Roberson
am 1 Mär. 2023
grades = xlsread('gradedata.xls');
B = grades.'
B(sub2ind(size(B),1:size(B,2))) = [];
B = reshape(B,[],size(grades,1)).'
This is what I got so far... but the output is not what I am looking for.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 1 Mär. 2023
[~, minidx] = min(B, 1);
Now you want to delete row minidx(1), column 1, row minidx(2), column 2, row minidx(3), column 3, and so on.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets 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!