The Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Topic: reshaping multidimensional data
Replies: 1   Last Post: Nov 11, 2012 7:31 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 11/11/12
reshaping multidimensional data
Posted: Nov 11, 2012 7:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a problem putting several matrices of different/same dimensions together to be represented by a single vector. The matrices have been constructed by reshaping multidimensional data to fit e.g. a 6*6*6 matrix. Now I need a vector containing all the given information.
My result allways creates a matirx with the dimension 30*6*6 since I have 5 matrices as input if I use the line
Y=[Matrix1; Matrix2;...];
and 6*30*6 if I use
Y=[Matrix1, Matrix2,...];
How do I get MATLAB to create a vector containing all dimensions of all input matrices?
I'm quite new to MATLAB so I would be thankful for every help I could get here.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.