http://www.mathworks.com/matlabcentral/newsreader/view_thread/278103
MATLAB Central Newsreader  Remapping a Matrix.
Feed for thread: Remapping a Matrix.
enus
©19942014 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Wed, 31 Mar 2010 09:10:06 +0000
Remapping a Matrix.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/278103#731733
Sumeer
Hi Guys, <br>
New user to Matlab. I have to write an engineering program in Matlab, & need to remap entries in 3 different 6x6 matrices, to make a large 18x18 matrix. Any suggestions on how I might go about this? <br>
regards<br>
Sumeer

Wed, 31 Mar 2010 09:55:07 +0000
Remapping a Matrix.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/278103#731750
Sadik
Hi Sameer,<br>
<br>
Are you sure it will be 18x18? Because 6x6x3 can give 18x6 or 6x18.<br>
<br>
In any case, you can use reshape() after concatenating the matrices as follows:<br>
<br>
matrix3D = zeros(6,6,3);<br>
matrix3D(:,:,1) = A;<br>
matrix3D(:,:,2) = B;<br>
matrix3D(:,:,3) = C;<br>
<br>
newMatrix = reshape(matrix3D,[18 6]); % or any other dimension, but still keeping 108 elements<br>
<br>
Best.

Wed, 31 Mar 2010 15:41:04 +0000
Remapping a Matrix.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/278103#731858
James Tursa
"Sumeer " <zippystokes@hotmail.com> wrote in message <hov3he$p5f$1@fred.mathworks.com>...<br>
> Hi Guys, <br>
> New user to Matlab. I have to write an engineering program in Matlab, & need to remap entries in 3 different 6x6 matrices, to make a large 18x18 matrix. Any suggestions on how I might go about this? <br>
> regards<br>
> Sumeer<br>
<br>
Not sure how you want them combined from your limited post. Generally you can use the [ ; ] operation (concatenation) to do this. Since this is an engineering problem and you have only given us three pieces, I am guessing that this is a symmetric system. If so, then you can do this:<br>
<br>
A = upper left 6 x 6 block.<br>
C = lower left 6 x 6 block.<br>
D = upper right 6 x 6 block.<br>
<br>
M = [A C'; C D]<br>
<br>
If this is not what you want then please post a more detailed question.<br>
<br>
James Tursa

Fri, 02 Apr 2010 02:52:06 +0000
Remapping a Matrix.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/278103#732382
Sumeer
"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hovqeg$p0s$1@fred.mathworks.com>...<br>
> "Sumeer " <zippystokes@hotmail.com> wrote in message <hov3he$p5f$1@fred.mathworks.com>...<br>
> > Hi Guys, <br>
> > New user to Matlab. I have to write an engineering program in Matlab, & need to remap entries in 3 different 6x6 matrices, to make a large 18x18 matrix. Any suggestions on how I might go about this? <br>
> > regards<br>
> > Sumeer<br>
> <br>
> Not sure how you want them combined from your limited post. Generally you can use the [ ; ] operation (concatenation) to do this. Since this is an engineering problem and you have only given us three pieces, I am guessing that this is a symmetric system. If so, then you can do this:<br>
> <br>
> A = upper left 6 x 6 block.<br>
> C = lower left 6 x 6 block.<br>
> D = upper right 6 x 6 block.<br>
> <br>
> M = [A C'; C D]<br>
> <br>
> If this is not what you want then please post a more detailed question.<br>
> <br>
> James Tursa<br>
<br>
Hi Guys, thanks for your responses, I have been able to work out what I need to do to solve my problem. Thanks for your help.<br>
regards Sumeer