MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > data extraction from matrix to use in another matr... 

Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 19 Oct, 2013 16:03:06 Message: 1 of 27 
I'm writing a code for finite element analysis and I don't know how to read a value from a matrix (A) and use it as a pointer to direct me to values in another matrix. 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 19 Oct, 2013 17:22:32 Message: 2 of 27 
On 10/19/2013 11:03 AM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 19 Oct, 2013 18:30:08 Message: 3 of 27 
dpb <none@non.net> wrote in message <l3uf4n$nm4$1@speranza.aioe.org>... 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 19 Oct, 2013 18:37:05 Message: 4 of 27 
On 10/19/2013 1:30 PM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 19 Oct, 2013 23:42:06 Message: 5 of 27 
My mistake, that matrix is wrong. 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 20 Oct, 2013 14:45:21 Message: 6 of 27 
On 10/19/2013 6:42 PM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 20 Oct, 2013 15:40:07 Message: 7 of 27 
Thank you very much dpq, you've been very helpful and I appreciate your patience with someone with no experience. 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 20 Oct, 2013 15:49:02 Message: 8 of 27 
On 10/20/2013 10:40 AM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 21 Oct, 2013 00:23:11 Message: 9 of 27 
I'm very sorry to say that it did not work because it arranged the matrices. 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 21 Oct, 2013 02:42:55 Message: 10 of 27 
> I'm very sorry to say that it did not work because it arranged the matrices. 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 21 Oct, 2013 11:45:07 Message: 11 of 27 
Elem # Nodea Nodeb Nodeax Nodeay 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 21 Oct, 2013 13:34:33 Message: 12 of 27 
On 10/21/2013 6:45 AM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 21 Oct, 2013 16:28:59 Message: 13 of 27 
On 10/21/2013 8:34 AM, dpb wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 21 Oct, 2013 22:10:17 Message: 14 of 27 
I think that this problem is about indexing, and I don't think that I have done a good job explaining what I need to do. 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 22 Oct, 2013 00:28:47 Message: 15 of 27 
On 10/21/2013 5:10 PM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 22 Oct, 2013 00:49:07 Message: 16 of 27 
yes, is column not row. 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 22 Oct, 2013 11:06:09 Message: 17 of 27 
What I need to do is to go to element 1, read the value of (conn  column 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 22 Oct, 2013 13:50:45 Message: 18 of 27 
On 10/22/2013 6:06 AM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 22 Oct, 2013 14:19:09 Message: 19 of 27 
Thank you, I'll do that 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 22 Oct, 2013 14:54:07 Message: 20 of 27 
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). 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 22 Oct, 2013 16:59:16 Message: 21 of 27 
On 10/22/2013 9:54 AM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 22 Oct, 2013 17:24:08 Message: 22 of 27 
I tried running it as you typed it and it gives me this error 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 22 Oct, 2013 17:33:10 Message: 23 of 27 
On 10/22/2013 12:24 PM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 22 Oct, 2013 18:09:32 Message: 24 of 27 
On 10/22/2013 12:33 PM, dpb wrote: 
Subject: data extraction from matrix to use in another matrix From: walter Mulvany Date: 22 Oct, 2013 18:14:07 Message: 25 of 27 
Thank you thank you thank you!!!!! 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 22 Oct, 2013 18:45:41 Message: 26 of 27 
On 10/22/2013 1:14 PM, walter Mulvany wrote: 
Subject: data extraction from matrix to use in another matrix From: dpb Date: 22 Oct, 2013 20:57:31 Message: 27 of 27 
On 10/22/2013 12:33 PM, dpb wrote: 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.