Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the index from the comparison of two similar matrix?

Status
Not open for further replies.

doreenfly

Automotive
Joined
Aug 14, 2005
Messages
1
Location
GB
There are two matrix which consist of the same colume vectors but they have different order in matrix
For example: A=[11 30 25;
14 20 50]
and B=[25 11 30;
50 14 20]
I want to get the colume index of B is [3 1 2]
I am quite new with matlab and so can I use simple function to solve this problem without loops?
 
for the above example u dont have a simple function.

let me know if u would like to try with loops or vector approach, i can give u some hints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top