
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.

