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: 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

Hello,

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:
{'1'}
{'123'}

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]

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