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: How to pull last element of an array within a cell array.
Replies: 2   Last Post: Sep 5, 2013 1:16 PM

Advanced Search

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

Posts: 991
Registered: 12/7/04
Re: How to pull last element of an array within a cell array.
Posted: Sep 5, 2013 1:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


"Chris " <mohdisease@yahoo.com> wrote in message
news:l082in$gqb$1@newscl01ah.mathworks.com...
> I've created a cell array and for my simplest case it as a 1x1 cell array.
> I want to pull the very last value of the array in this cell and am not
> sure how.
>
> i.e.:
> Ne <1x1 cell>
> the cell is a 129x1 double I want the last value of that 129x1 array
>
> Also, in the future this cell array will consist of multiple arrays so I'd
> like to know how to pull a specific value, such as the last value above,
> within a particular array of say a 1x10 cell array.
>
> Thanks!


Ne{1}(end)

--
--Loren

http://blogs.mathworks.com/loren




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.