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: select the opposite of what the index specifies
Replies: 6   Last Post: Jun 25, 2015 9:34 AM

Advanced Search

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

Posts: 23
Registered: 9/15/09
Re: select the opposite of what the index specifies
Posted: Nov 30, 2009 7:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

thanks for answers, anyway I found another solution.. I think it is ok:

target_test = images(1:30:end,:);
other_test = images;
other_test(1:30:end,:) = [];

DitzaN <> wrote in message <>...
> Try this:
> FullIdx=1:end;
> NotIdx=4:30:end;
> Idx=setdiff(FullIdx,NotIdx)
> replace the "end" with the length of yours vector

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.