Update cell help page.
[scilab.git] / scilab / modules / data_structures / help / ja_JP / cell.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2007-2008 - INRIA
5  *
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at
10  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11  *
12  -->
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="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="cell" xml:lang="ja">
14     <refnamediv>
15         <refname>cell</refname>
16         <refpurpose>空行列のセル配列を作成する.</refpurpose>
17     </refnamediv>
18     <refsynopsisdiv>
19         <title>呼び出し手順</title>
20         <synopsis>
21             c=cell()
22             c=cell(m1)
23             c=cell(m1, m2)
24             c=cell(m1, m2, ..., mn)
25             c=cell(x)
26         </synopsis>
27     </refsynopsisdiv>
28     <refsection>
29         <title>パラメータ</title>
30         <variablelist>
31             <varlistentry>
32                 <term>x</term>
33                 <listitem>
34                     <para>作成するセル配列の次元のベクトル.</para>
35                 </listitem>
36             </varlistentry>
37             <varlistentry>
38                 <term>m1, m2,..</term>
39                 <listitem>
40                     <para>作成するセルの次元.</para>
41                 </listitem>
42             </varlistentry>
43         </variablelist>
44     </refsection>
45     <refsection>
46         <title>説明</title>
47         <para>空行列のセルを生成,返します.</para>
48         <variablelist>
49             <varlistentry>
50                 <term>cell()</term>
51                 <listitem>
52                     <para>
53                         空行列の <literal>(0,0)</literal> セル配列を返します.
54                     </para>
55                 </listitem>
56             </varlistentry>
57             <varlistentry>
58                 <term>cell(m1)</term>
59                 <listitem>
60                     <para>
61                         <literal>(m1,m1)</literal> は空行列のセル配列を返します.
62                     </para>
63                 </listitem>
64             </varlistentry>
65             <varlistentry>
66                 <term>cell(m1,m2)</term>
67                 <listitem>
68                     <para>
69                         <literal>(m1,m2) </literal>は空行列のセル配列を返します.
70                     </para>
71                 </listitem>
72             </varlistentry>
73             <varlistentry>
74                 <term>cell(m1,m2,..,mn)</term>
75                 <listitem>
76                     <para>
77                         <literal>(m1,m2,..,mn)</literal> は空行列のセル配列を作成します.
78                     </para>
79                 </listitem>
80             </varlistentry>
81             <varlistentry>
82                 <term>cell(x)</term>
83                 <listitem>
84                     <para>
85                         最初の次元が<literal>x(1)</literal>,
86                         2番目の次元が<literal>x(2), ...</literal>となる
87                         空行列のセル配列を返します.
88                     </para>
89                 </listitem>
90             </varlistentry>
91         </variablelist>
92     </refsection>
93     <refsection>
94         <title>注意</title>
95         <para>
96             <literal>cell(x) </literal>は
97             <literal>x</literal>と同じ大きさになりません.
98         </para>
99         <para>
100             <literal>cell()</literal> は
101             <literal>cell(0)</literal>に等しくなりです.
102         </para>
103         <para>A がセル配列の場合, 
104             <literal>A{m1, m2, ..., mn}</literal>により
105             Aの要素の内容にアクセスすることができます.
106             式 <literal>A(1,1) = zeros(2,2)</literal> は有効ではなく,
107             <literal>A{1,1} = zeros(2,2)</literal>が正しい構文となります.
108         </para>
109     </refsection>
110     <refsection>
111         <title>例</title>
112         <programlisting role="example"><![CDATA[ 
113 a = cell(3)
114 b = cell(3,1)
115 c = cell([2,3,4])
116  
117 // Assigning cell entries
118 b = cell(3,1);
119  
120 // Assigning the first element of b using {}
121 b{1} = 1:3
122  
123 // Assigning the second element of b using {}
124 b{2} = 'Scilab'
125  
126 // Assigning the third element of b using the 'entries' field
127 b{3} = poly(1:3,'s')
128  
129 // Assigning sub-cells
130 X = cell(3,2);
131 X{:,1} = b
132  
133 // Extracting a sub-cell: result is a cell
134 b{1}
135 b{1:2}
136  
137 // Extracting a sub-cell value: result is an array
138 b{1}
139  
140 // Dimensions of b as a double value
141 size(b)
142  ]]></programlisting>
143     </refsection>
144     <refsection role="see also">
145         <title>参照</title>
146         <simplelist type="inline">
147             <member>
148                 <link linkend="eye">eye</link>
149             </member>
150             <member>
151                 <link linkend="ones">ones</link>
152             </member>
153             <member>
154                 <link linkend="zeros">zeros</link>
155             </member>
156             <member>
157                 <link linkend="iscell">iscell</link>
158             </member>
159         </simplelist>
160     </refsection>
161     <refsection>
162         <title>History</title>
163         <revhistory>
164             <revision>
165                 <revnumber>6.0.0</revnumber>
166                 <revremark>
167                     <para>
168                         Fields "entries" and "dims" do not exist anymore. To assign or extract an element, use {}.
169                     </para>
170                 </revremark>
171             </revision>
172         </revhistory>
173     </refsection>
174 </refentry>