Could anyone tell what is the difference between ind and idx.
18 次查看(过去 30 天)
显示 更早的评论
Could anyone tell what is the difference between ind and idx.
2 个评论
采纳的回答
Rik
2018-8-13
编辑:Rik
2018-8-13
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 Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!