Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个数组:
A1=100 ; A2=200 ; A3=300 ; A4=500 ; A=[A1 A2 A3 A4];
A(2)将给出一个值200.
A(2)
200.
但我怎样才能知道A(2)=A2呢?
A(2)=A2
[row,col]=find(A==200); Answer: row=2 -> Corresponds to A2
这是你想要的吗?