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
これは、あなたの望むことですか?