フィルターのクリア

How can i make priority in matlab?

2 ビュー (過去 30 日間)
ABDULLA RAHIL
ABDULLA RAHIL 2016 年 3 月 22 日
コメント済み: ABDULLA RAHIL 2016 年 3 月 24 日
i have many stations and i want to choose the highest load cost as first and so on
i have six stations with different loads

採用された回答

Walter Roberson
Walter Roberson 2016 年 3 月 23 日
[maxload, maxidx] = max(TheLoads)
now maxload stores the value of the largest of TheLoads, and maxidx stores the index within TheLoads, so it tells you which load is largest.
  3 件のコメント
Walter Roberson
Walter Roberson 2016 年 3 月 23 日
If TheLoads is a 6 x 365 array, then
[maxload, maxidx] = max(TheLoads);
will have maxload be the maximum per day and maxidx will be the index of the maximum for each day. If your array is 365 x 6 instead, then
[maxload, maxidx] = max(TheLoads, [], 2);
ABDULLA RAHIL
ABDULLA RAHIL 2016 年 3 月 24 日
many thanks for your help Walter

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by