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: grouping iterates
Replies: 1   Last Post: Mar 26, 2013 8:57 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
dpb

Posts: 7,885
Registered: 6/7/07
Re: grouping iterates
Posted: Mar 26, 2013 8:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 3/26/2013 2:35 AM, Priyata wrote:
> I want to group the iterates into two sets. How can I do that?
> For example: I have repeated the iteration 100 times so there are 100
> iterates between 0 and 2 and I want to group these iterates into two
> sets suppose I = (0,1) and II = (1,2).
> Thanks.


ix=(X<=1); % inclusive; salt to suit...
I=X(ix); II=X(~ix);

or,

doc hist % and friends...

--



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.