Could someone explain below part of code please ? I do not understand the first part [~,b]
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
[~,b] = min(abs(RealEL1));
0 Kommentare
Akzeptierte Antwort
Matt J
am 4 Okt. 2017
Bearbeitet: Matt J
am 4 Okt. 2017
These are the outputs of the min() function. b is the location of the minimum value. ~ means that the first output argument, the minimum value itself, is not to be assigned to any variable.
2 Kommentare
Matt J
am 4 Okt. 2017
You're welcome, but if your question has been answered, please click "Accept".
Weitere Antworten (1)
Guillaume
am 4 Okt. 2017
The ~ ignores the first output of min as you're only interested in the index of the minimum, not its actual value.
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!