What is the fastes way to find the maximum of a set of data?
1 次查看(过去 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!