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: extracting rows from cell arrays
Replies: 1   Last Post: Jan 14, 2009 7:26 AM

Advanced Search

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

Posts: 14
Registered: 3/4/08
extracting rows from cell arrays
Posted: Jan 14, 2009 4:34 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I'm trying to find an easy way to do the following:
I have a vector of cells (NX1); each cell contains two cells (1X2).
for example, two rows of my big cell array are of the form:
{'1'}, {'A'}
{'123'}, {'BC'}
(the lengths of the strings are not constants).
I wanted to to extract the first column of cells,
meaning the results should be:

Of course I would like to do that without a loop.

Thanks a lot!

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.