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: Copy double array values to cell array
Replies: 2   Last Post: Jan 2, 2013 3:05 AM

Advanced Search

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

Posts: 2
Registered: 11/4/12
Copy double array values to cell array
Posted: Jan 1, 2013 6:00 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi, I would like to copy the values in a double
array of 2by2 to a cell array of 3by3. Ii want my double array values to start
filling my cell array from row 2 up to the
last row but i'm getting an error. Check my code:
a=cell(3,2);
b=[1,2;3,4];
a{2:end,:}=b(:,:); What is wrong with my code? I would be very grateful if you could let it
get to the makers of Matlab for me.



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.