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!