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

15 vues (au cours des 30 derniers jours)
Prabha Kumaresan
Prabha Kumaresan le 13 Août 2018
Commenté : Prabha Kumaresan le 13 Août 2018
Could anyone tell what is the difference between ind and idx.
  2 commentaires
Dennis
Dennis le 13 Août 2018
In what context? They might be both abbreviations for index.
Prabha Kumaresan
Prabha Kumaresan le 13 Août 2018
ok.

Connectez-vous pour commenter.

Réponse acceptée

Rik
Rik le 13 Août 2018
Modifié(e) : Rik le 13 Août 2018
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.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by