Could someone explain below part of code please ? I do not understand the first part [~,b]
1 回表示 (過去 30 日間)
古いコメントを表示
[~,b] = min(abs(RealEL1));
0 件のコメント
採用された回答
Matt J
2017 年 10 月 4 日
編集済み: Matt J
2017 年 10 月 4 日
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 件のコメント
Matt J
2017 年 10 月 4 日
You're welcome, but if your question has been answered, please click "Accept".
その他の回答 (1 件)
Guillaume
2017 年 10 月 4 日
The ~ ignores the first output of min as you're only interested in the index of the minimum, not its actual value.
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!