MATLAB Answers

0

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

Asked by benjamin ma on 28 Feb 2014
Latest activity Commented on by benjamin ma on 28 Feb 2014
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?

  0 Comments

Sign in to comment.

1 Answer

Answer by Mischa Kim
on 28 Feb 2014
Edited by Mischa Kim
on 28 Feb 2014
 Accepted Answer

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.