How can i make priority in matlab?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ABDULLA RAHIL
am 22 Mär. 2016
Kommentiert: ABDULLA RAHIL
am 24 Mär. 2016
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
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 23 Mär. 2016
[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 Kommentare
Walter Roberson
am 23 Mär. 2016
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);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!