Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Reshape
Replies: 1   Last Post: Nov 15, 2012 7:43 PM

Advanced Search

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

Posts: 71
Registered: 6/14/12
Reshape
Posted: Nov 15, 2012 3:35 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

A=rand (201,7152);

"A" is a matrix and I would like to reshape "A" to "B"

B=reshape (A,59898,24);

"B" is not going to be what I expected since it is getting mixed up. For example

C=A(:,1:24);
D=B(1:201,:);

isequal(C, D)

ans =

0
How can I reshape "A" to get "C" equal with "D".

Thanks,
Jerry


Date Subject Author
11/15/12
Read Reshape
Jerry
11/15/12
Read Reshape
Roger Stafford

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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.