how to calculate max and mean for big matrix 10*155 but i need to pick the value after coloumn 50?

1 Ansicht (letzte 30 Tage)
Do i need to create a new matrix and input all value from col 50 to 155? or i can do it in some other ways but not to make new matrix?

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 28 Feb. 2014
Bearbeitet: Mischa Kim am 28 Feb. 2014
Benjamin, use
max_mat = max(mat(:,51:end),[],2)
mean_mat = mean(mat(:,51:end),2)
assuming you want to compute max and mean for each row.

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices 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!

Translated by