Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Aug 14, 2005
1
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?
 
Replies continue below

Recommended for you

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