Re: findobj -regexp documentation error?
- From: "per isakson" <poi1@xxxxxxx>
- Date: Wed, 16 May 2007 13:24:32 -0400
Walter Roberson wrote:
The doc information
'Accessing Object Handles :: Handle Graphics Objects (Graphics)'
has the section,
Limiting the Search with Regular Expressions.
Increase the value of the MarkerSize property by 2 points on
all stemseries objects that do not have their property Tag set
to
'Steady State'.
h = findobj('-regexp','Tag','[^Steady State]');
set(h,{'MarkerSize'},num2cell(cell2mat(get(h,'MarkerSize'))+2))
Wouldn't this match tags whose letter are all not any of
'a', 'd', 'e', 't', 'y', or 'S' ?
That is, isn't the regexp '[^Steady State]' the syntax for
a negated character class, rather than the syntax for "anything
except the following string" ?
For example, if one sets the tag to 'taSty yeaSt', findobj with
the above expression will not find it.
--
"law -- it's a commodity"
-- Andrew Ryan (The Globe and Mail,
2005/11/26)
You are right. However, in which version did you find this? I cannot
find it in R2006b or R2007a.
It is a very poor example, but I guess it will work in nine out of
ten cases.
/ per
.
- Follow-Ups:
- Re: findobj -regexp documentation error?
- From: Walter Roberson
- Re: findobj -regexp documentation error?
- References:
- findobj -regexp documentation error?
- From: Walter Roberson
- findobj -regexp documentation error?
- Prev by Date: Re: Inserting TEX commands in a list box?
- Next by Date: Re: kde desktop icon for Matlab?
- Previous by thread: Re: findobj -regexp documentation error?
- Next by thread: Re: findobj -regexp documentation error?
- Index(es):
Relevant Pages
|
Loading