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: cell simplify and initilialize
Replies: 1   Last Post: Oct 22, 2012 10:30 AM

Advanced Search

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

Posts: 338
Registered: 4/17/07
cell simplify and initilialize
Posted: Oct 19, 2012 9:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


following code needs to be simplified
>> A=cell(2,3);
>> A{1}(:)=[5:8,14:15,19:20]

??? In an assignment A(:) = B, the number of elements in A and B
must be the same.

Sure following it's ok, but clumsy.

Furthermore, if I need only one element for A(2,:), i.e. A{2,1} and not necessary for A{2,2} and A{2,3}, how to do it?



As for A{2,1}=24:25, I

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.