Azzera filtri
Azzera filtri

mean across rows and columns

6 visualizzazioni (ultimi 30 giorni)
harley
harley il 4 Ott 2013
Risposto: Walter Roberson il 4 Ott 2013
i have a code that produces 10 x 5 matrix, i want it to find the mean across the rows rather than down each column.
for a=(1:5);
% some code here
Major1=(MJ_V11);%(0:end); %10 x 5 matrix here
Major11 = mean(Major1);
end

Risposta accettata

Walter Roberson
Walter Roberson il 4 Ott 2013
mean(Major1, 2)

Più risposte (0)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by