Access the array index using find
1 ビュー (過去 30 日間)
I have an array A1 = [1 12 23 45]; and
second array A1_1 = [45 23];
I need to find the index of 45 and 23 in first array A1. I am using following function to do this find(a==a_1(1)) --Output =4 find(a==a_1(2)) --Output =3 I want to get this for multiple elements of array .
It would be grateful if you let me know the changes that are to be done to get it for multiple elements in an array.
Looking forward to hear from you at the earliest.