フィルターのクリア

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

1 回表示 (過去 30 日間)
Bo Sarah
Bo Sarah 2017 年 10 月 4 日
コメント済み: Matt J 2017 年 10 月 4 日
[~,b] = min(abs(RealEL1));

採用された回答

Matt J
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 件のコメント
Bo Sarah
Bo Sarah 2017 年 10 月 4 日
thank you :)
Matt J
Matt J 2017 年 10 月 4 日
You're welcome, but if your question has been answered, please click "Accept".

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

その他の回答 (1 件)

Guillaume
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 ExchangeLogical についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by