display values in particular order
1 回表示 (過去 30 日間)
古いコメントを表示
i have a code that displays the minimum value. I want to display the rest of the values from lowest to highest value, how do i do this.
RMSVALUES = [rms_a, rms_b, rms_c, rms_d, rms_e, rms_f]
MINRMS = min(RMSVALUES)
%
if MINRMS==rms_a
fprintf('rms_a is best match,');
end
if MINRMS==rms_b
fprintf('rms_b is best match,');
end
% etc......
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 9 月 17 日
編集済み: Azzi Abdelmalek
2013 年 9 月 17 日
use sort function
help sort
EXAMPLE
v=[2 4 1 8 0 12]
out=sort(v)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!