Indexing

2 次查看(过去 30 天)
Sahab
Sahab 2011-5-7
how can we know the index of this data? for example,i want know index of 0 and -30
x=[0,-10,-30,-30,-10,-20,-20,-0,-30]

采纳的回答

Paulo Silva
Paulo Silva 2011-5-7
I0=find(x==0)
I30=find(x==-30)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by