Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to calculate the average of matrixes with one row?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Good morning ///// I have 40 matrices, each with one row, each matrix composed of 2400 elements ( numbers ). how can I calculate the average? Element to the corresponding element. the result will be one matrix with 2400 elements. //// thank you///
1 Kommentar
Stephen23
am 11 Apr. 2017
"I have 40 matrices"
Which means you should probably read this:
And next time store your data in one array.
Antworten (1)
Image Analyst
am 11 Apr. 2017
Try this:
% rv = your row vector names
% Concatenate all 40 variables vertically.
matrix2d = [rv1;rv2;rv3;rv4;rv5;............rv39;rv40];
theMeans = mean(matrix2d, 1); % A 1 by 2400 row vector.
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!