Filter löschen
Filter löschen

Could someone explain below part of code please ? I do not understand the first part [~,b]

1 Ansicht (letzte 30 Tage)
[~,b] = min(abs(RealEL1));

Akzeptierte Antwort

Matt J
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.

Weitere Antworten (1)

Guillaume
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.

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by