how to calculate max and mean for big matrix 10*155 but i need to pick the value after coloumn 50?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Mischa Kim
2014년 2월 28일
편집: Mischa Kim
2014년 2월 28일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!