What is the fastes way to find the maximum of a set of data?
4 ビュー (過去 30 日間)
古いコメントを表示
It would be easy to use a for loop and compare element by element, but I dont think that is the best way to do it. Does matlab have a function for this? Or would it be better to write my own sorting algorithm
0 件のコメント
採用された回答
Image Analyst
2013 年 9 月 4 日
Well, the max() function springs to mind. Did you look up max in the help? If you want the data sorted, there is a sort() function, believe it or not.
その他の回答 (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!