Finding the mean value for five maximum number in matrix
이전 댓글 표시
Hi guys, I have (1*9) matrix below, I 'd like to calculate mean value for max 5 number in this matrix can anyone help me?
Regards

채택된 답변
추가 답변 (1개)
Chad Greene
2015년 1월 20일
편집: Chad Greene
2015년 1월 20일
X_sorted = sort(X);
mean5 = mean(X_sorted(1:5),'descend');
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!