japanese translation updated.
[scilab.git] / scilab / modules / core / help / ja_JP / variables / isdef.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5  * Copyright (C) 2008 - INRIA
6  * 
7  * This file must be used under the terms of the CeCILL.
8  * This source file is licensed as described in the file COPYING, which
9  * you should have received as part of this distribution.  The terms
10  * are also available at    
11  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
12  *
13  -->
14
15 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="isdef" xml:lang="ja">
16     
17     <refnamediv>
18         
19         <refname>isdef</refname>
20         
21         <refpurpose>変数の存在を確認</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>ve = isdef(name [,where])</synopsis>
30         
31     </refsynopsisdiv>
32     
33     <refsection>
34         
35         <title>引数</title>
36         
37         <variablelist>
38             
39             <varlistentry>
40                 
41                 <term>ve</term>
42                 
43                 <listitem>
44                     
45                     <para>
46                         
47                         論理値を有する <varname>name</varname>と同じ大きさの行列
48                         
49                     </para>
50                     
51                 </listitem>
52                 
53             </varlistentry>
54             
55             <varlistentry>
56                 
57                 <term>name</term>
58                 
59                 <listitem>
60                     
61                     <para>文字列の行列</para>
62                     
63                 </listitem>
64                 
65             </varlistentry>
66             
67             <varlistentry>
68                 
69                 <term>where</term>
70                 
71                 <listitem>
72                     
73                     <para>
74                         
75                         文字列, <literal>'l'</literal> (<literal>"local"</literal>の場合),
76                         
77                         <literal>'n'</literal> (<literal>"nolocal"</literal>の場合) or
78                         
79                         <literal>'a'</literal> (<literal>"all"</literal>の場合)を指定できます. 
80                         
81                         デフォルト値は <literal>'a'</literal>です.
82                         
83                     </para>
84                     
85                 </listitem>
86                 
87             </varlistentry>
88             
89         </variablelist>
90         
91     </refsection>
92     
93     <refsection>
94         
95         <title>説明</title>
96         
97         <para>
98             
99             <code>isdef(name)</code>は,
100             
101             <varname>name</varname> という名前の変数が存在する場合に
102             
103             <constant>%T</constant>,それ以外の場合に <constant>%F</constant>を返します.
104             
105         </para>
106         
107         <para>
108             
109             <caution>
110                 
111                 注意: <function>isdef</function> を使用する関数
112                 
113                 は環境に依存した結果を返す可能性があります!
114                 
115             </caution>
116             
117         </para>
118         
119         <para>
120             
121             <code>isdef(name, 'l')</code> は,
122             
123             <varname>name</varname> という名前の変数がカレントの関数のローカル環境に
124             
125             存在する場合に<constant>%T</constant>, 
126             
127             それ以外の場合に <constant>%F</constant> を返します.
128             
129         </para>
130         
131         <para>
132             
133             <code>isdef(name, 'n')</code>  は,
134             
135             <varname>name</varname> という名前の変数が
136             
137             (グローバルレベルを含む)呼び出した側の環境に
138             
139             存在する場合に<constant>%T</constant>, 
140             
141             それ以外の場合に <constant>%F</constant>を返します.
142             
143         </para>
144         
145         <note>
146             
147             注意: <varname>where</varname>オプション
148             
149             の最初の1文字のみが処理されます.
150             
151         </note>
152         
153     </refsection>
154     
155     <refsection>
156         
157         <title>例</title>
158         
159         <programlisting role="example"><![CDATA[
160 A = 1; B = 2; C = 3; D = 4;
161 isdef(['A', 'B'; 'C', 'D'])
162 clear A, B, C, D;
163 isdef(['A', 'B'; 'C', 'D'])
164
165 function level1()
166   function level2()
167     disp(isdef(["a", "b"], "a"));
168     disp(isdef(["a", "b"], "l"));
169     disp(isdef(["a", "b"], "n"));
170   endfunction
171   level2()
172 endfunction
173 function go()
174   a = 1;
175   level1()
176 endfunction
177 go()
178  ]]></programlisting>
179         
180     </refsection>
181     
182     <refsection role="see also">
183         
184         <title>参照</title>
185         
186         <simplelist type="inline">
187             
188             <member>
189                 
190                 <link linkend="exists">exists</link>
191                 
192             </member>
193             
194             <member>
195                 
196                 <link linkend="isglobal">isglobal</link>
197                 
198             </member>
199             
200             <member>
201                 
202                 <link linkend="whereis">whereis</link>
203                 
204             </member>
205             
206             <member>
207                 
208                 <link linkend="type">type</link>
209                 
210             </member>
211             
212             <member>
213                 
214                 <link linkend="typeof">typeof</link>
215                 
216             </member>
217             
218             <member>
219                 
220                 <link linkend="clear">clear</link>
221                 
222             </member>
223             
224         </simplelist>
225         
226     </refsection>
227     
228 </refentry>
229