File: Searching-Properties.html

package info (click to toggle)
octave3.2 3.2.4-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 62,936 kB
  • ctags: 37,353
  • sloc: cpp: 219,497; fortran: 116,336; ansic: 10,264; sh: 5,508; makefile: 4,245; lex: 3,573; yacc: 3,062; objc: 2,042; lisp: 1,692; awk: 860; perl: 844
file content (102 lines) | stat: -rw-r--r-- 5,854 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<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.11">
<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">
<p>
<a name="Searching-Properties"></a>
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>