Could anyone tell what is the difference between ind and idx.

11 ビュー (過去 30 日間)
Prabha Kumaresan
Prabha Kumaresan 2018 年 8 月 13 日
コメント済み: Prabha Kumaresan 2018 年 8 月 13 日
Could anyone tell what is the difference between ind and idx.
  2 件のコメント
Dennis
Dennis 2018 年 8 月 13 日
In what context? They might be both abbreviations for index.
Prabha Kumaresan
Prabha Kumaresan 2018 年 8 月 13 日
ok.

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

採用された回答

Rik
Rik 2018 年 8 月 13 日
編集済み: Rik 2018 年 8 月 13 日
As Dennis mentioned, they are both abbreviations for index.
As you may have noticed in the previous thread (where the code in the question was originally written by me as well), I sometimes use one, and sometimes the other.
It is not a hard and fast rule, but in general I will use idx for results of a search, and ind if I'm composing an index vector to be used in a vectorized operation. But these are personal preferences, and I don't even always follow this 'rule' myself.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatched Filter and Ambiguity Function についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by