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

조회 수: 15 (최근 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.

댓글을 달려면 로그인하십시오.

채택된 답변

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 CenterFile Exchange에서 Matched 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