Find index of maximum number
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
May I know how to write in MATLAB to find the index of maximum number.
M = 13;
[gh_w, ph_w, d_l, pl_d] = getWindData(M, weekday);
maxIndex = max (gh_w(:,M));
H = maxIndex;
I only got the output of maximum value which is 611.5077. Thank.
0 件のコメント
採用された回答
John D'Errico
2012 年 4 月 6 日
Read the help for max (always a good thing to read the help!)
What does it say?
2 件のコメント
Oleg Komarov
2012 年 4 月 6 日
If you need only THE maximum, then read the help (again and paying attention to the second output).
If you need to determine the first N maximum numbers and their position, then ask the question accordingly.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!