Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: data extraction from matrix to use in another matrix
Replies: 26   Last Post: Oct 22, 2013 4:57 PM

 Messages: [ Previous | Next ]
 walter Mulvany Posts: 14 Registered: 10/19/13
Re: data extraction from matrix to use in another matrix
Posted: Oct 22, 2013 7:06 AM

What I need to do is to go to element 1, read the value of (conn - column
> 2) which is 5, go to the coord matrix, find the value (5) in its column 1
> and extract the x value that correspond to that location (5) from (coord
> - column 2) which in this case is (1).
>
> Those values can be stored in a matrix, lets call it M as you named it.

When I do that I get this error

??? Subscripted assignment dimension mismatch.

Error in ==> trial at 13
M(i,:)=[conn(i,:) conn(find(conn(:,1)==coord(i,1)),:)];

I know I have confused you a lot with my inexperience but if you can just give a last chance, I think that this is correct now. I've tried with other people at the university and nobody knows how to do it.

Date Subject Author
10/19/13 walter Mulvany
10/19/13 dpb
10/19/13 walter Mulvany
10/19/13 dpb
10/19/13 walter Mulvany
10/20/13 dpb
10/20/13 walter Mulvany
10/20/13 dpb
10/20/13 walter Mulvany
10/21/13 walter Mulvany
10/21/13 dpb
10/21/13 dpb
10/21/13 walter Mulvany
10/21/13 dpb
10/21/13 walter Mulvany
10/22/13 walter Mulvany
10/22/13 dpb
10/22/13 walter Mulvany
10/22/13 walter Mulvany
10/22/13 dpb
10/22/13 walter Mulvany
10/22/13 dpb
10/22/13 dpb
10/22/13 walter Mulvany
10/22/13 dpb
10/22/13 dpb
10/20/13 dpb