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: negative patterns
Replies: 1   Last Post: Jan 10, 2013 10:34 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Matt J

Posts: 4,994
Registered: 11/28/09
Re: negative patterns
Posted: Jan 10, 2013 10:34 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Scott " <skrasnigor@comcast.net> wrote in message <kcmmat$ftl$1@newscl01ah.mathworks.com>...
> I have a group of valid strings, ie 0.0, 1.1, 1.2, 1.3, etc... . I have an array of values that I am processing and would like to replace any value that is not one of my valid strings with the string representation, n/v. I am familiar with the strrep fuction but I am unable to figure out the pattern I would use to match everything except my valid strings. Thanks for your time.
========================

one way

[invalidstrings,loc]=setdiff(allstrings,validstrings)


Date Subject Author
1/10/13
Read negative patterns
Scott
1/10/13
Read Re: negative patterns
Matt J

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.