How to sum the minor number of each line in a matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
The question its in the title, thanks
0 Kommentare
Antworten (1)
Erivelton Gualter
am 20 Nov. 2019
Given matrix A as:
A = [9 6 3;
8 5 2;
7 4 1]; % Sample Matrix
minA = min(A,[],2); % Returns min value for each line (row)
sumMinA = sum(minA); % Returns the sum of the min values
0 Kommentare
Siehe auch
Kategorien
Mehr zu NaNs 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!