Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 3e60ff9d4d6f58c8fbd17208f14089fa > files > 361

octave-doc-3.2.3-3mdv2010.0.i586.rpm

<html lang="en">
<head>
<title>Searching Properties - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Graphics-Object-Properties.html#Graphics-Object-Properties" title="Graphics Object Properties">
<link rel="prev" href="Surface-Properties.html#Surface-Properties" title="Surface Properties">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Searching-Properties"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Surface-Properties.html#Surface-Properties">Surface Properties</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Graphics-Object-Properties.html#Graphics-Object-Properties">Graphics Object Properties</a>
<hr>
</div>

<h5 class="subsubsection">15.2.2.9 Searching Properties</h5>

<!-- ./plot/findobj.m -->
<p><a name="doc_002dfindobj"></a>

<div class="defun">
&mdash; Function File: <var>h</var> = <b>findobj</b> ()<var><a name="index-findobj-1197"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findobj</b> (<var>prop_name, prop_value</var>)<var><a name="index-findobj-1198"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findobj</b> (<var>'-property', prop_name</var>)<var><a name="index-findobj-1199"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findobj</b> (<var>'-regexp', prop_name, pattern</var>)<var><a name="index-findobj-1200"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findobj</b> (<var>'flat', <small class="dots">...</small></var>)<var><a name="index-findobj-1201"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findobj</b> (<var>h, <small class="dots">...</small></var>)<var><a name="index-findobj-1202"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findobj</b> (<var>h, '-depth', d, <small class="dots">...</small></var>)<var><a name="index-findobj-1203"></a></var><br>
<blockquote><p>Find object with specified property values.  The simplest form is

     <pre class="example">          findobj (<var>prop_name</var>, <var>prop_Value</var>)
</pre>
        <p class="noindent">which returns all of the handles to the objects with the name
<var>prop_name</var> and the name <var>prop_Value</var>.  The search can be limited
to a particular object or set of objects and their descendants by
passing a handle or set of handles <var>h</var> as the first argument to
<code>findobj</code>.

        <p>The depth of hierarchy of objects to which to search to can be limited
with the '-depth' argument.  To limit the number depth of the hierarchy
to search to <var>d</var> generations of children, and example is

     <pre class="example">          findobj (<var>h</var>, '-depth', <var>d</var>, <var>prop_Name</var>, <var>prop_Value</var>)
</pre>
        <p>Specifying a depth <var>d</var> of 0, limits the search to the set of object
passed in <var>h</var>.  A depth <var>d</var> of 0 is equivalent to the '-flat'
argument.

        <p>A specified logical operator may be applied to the pairs of <var>prop_Name</var>
and <var>prop_Value</var>.  The supported logical operators are '-and', '-or',
'-xor', '-not'.

        <p>The objects may also be matched by comparing a regular expression to the
property values, where property values that match <code>regexp
(</code><var>prop_Value</var><code>, </code><var>pattern</var><code>)</code> are returned.  Finally, objects may be
matched by property name only, using the '-property' option. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dget.html#doc_002dget">get</a>, <a href="doc_002dset.html#doc_002dset">set</a>. 
</p></blockquote></div>

<!-- ./plot/findall.m -->
   <p><a name="doc_002dfindall"></a>

<div class="defun">
&mdash; Function File: <var>h</var> = <b>findall</b> ()<var><a name="index-findall-1204"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findall</b> (<var>prop_name, prop_value</var>)<var><a name="index-findall-1205"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findall</b> (<var>h, <small class="dots">...</small></var>)<var><a name="index-findall-1206"></a></var><br>
&mdash; Function File: <var>h</var> = <b>findall</b> (<var>h, "-depth", d, <small class="dots">...</small></var>)<var><a name="index-findall-1207"></a></var><br>
<blockquote><p>Find object with specified property values including hidden handles.

        <p>This function performs the same function as <code>findobj</code>, but it
includes hidden objects in its search.  For full documentation, see
<code>findobj</code>. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dget.html#doc_002dget">get</a>, <a href="doc_002dset.html#doc_002dset">set</a>, <a href="doc_002dfindobj.html#doc_002dfindobj">findobj</a>, <a href="doc_002dallchild.html#doc_002dallchild">allchild</a>. 
</p></blockquote></div>

   </body></html>