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
|
<?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="findobj">
<refnamediv>
<refname>findobj</refname>
<refpurpose>指定したプロパティを有するオブジェクトを探す</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>呼び出し手順</title>
<synopsis>
h = findobj(propertyName, propertyValue)
</synopsis>
</refsynopsisdiv>
<refsection>
<title>引数</title>
<variablelist>
<varlistentry>
<term>propertyName</term>
<listitem>
<para>文字列,探すプロパティ名 (大文字小文字を区別しない).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>propertyValue</term>
<listitem>
<para>
探すプロパティが一致する値を指定する文字列
(大文字小文字を区別する).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>h</term>
<listitem>
<para>見つかったオブジェクトのハンドル.</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>説明</title>
<para>
このルーチンは,現在,
'tag'プロパティが既知のオブジェクトを探す際に使用されています.
このルーチンは,
<emphasis role="italic">propertyName</emphasis>が
<emphasis role="italic">propertyValue</emphasis>に等しい
最初に見つかったオブジェクトのハンドルを返します.
そのようなオブジェクトが存在しない場合,
この関数は空の行列を返します.
</para>
</refsection>
<refsection>
<title>例</title>
<programlisting role="example"><![CDATA[
// 図を作成
h=figure();
// 図にテキストを表示
uicontrol(h, "style","text", ...
"string","This is a figure", ...
"position",[50 70 100 100], ...
"fontsize",15, ...
"tag","Alabel");
// "tag" の値が"Alabel"であるオブジェクトを探す
lab=findobj("tag","Alabel");
disp("The text of the label is """+lab.string+"""");
// 図を閉じる
close();
]]></programlisting>
</refsection>
<refsection role="see also">
<title>参照</title>
<simplelist type="inline">
<member>
<link linkend="uicontrol">uicontrol</link>
</member>
<member>
<link linkend="uimenu">uimenu</link>
</member>
<member>
<link linkend="set">set</link>
</member>
<member>
<link linkend="get">get</link>
</member>
</simplelist>
</refsection>
</refentry>
|