×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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?

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

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources