added newly introduced *.xml in 5.5.
[scilab.git] / scilab / modules / elementary_functions / help / ja_JP / num2cell.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) 2013 - Scilab Enterprises - Charlotte HECQUET
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="num2cell" xml:lang="ja">
16     
17     <refnamediv>
18         
19         <refname>num2cell</refname>
20         
21         <refpurpose>配列をセル配列に変換する</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>
30             
31             y=num2cell(x [,dims])
32             
33         </synopsis>
34         
35     </refsynopsisdiv>
36     
37     <refsection>
38         
39         <title>引数</title>
40         
41         <variablelist>
42             
43             <varlistentry>
44                 
45                 <term>x</term>
46                 
47                 <listitem>
48                     
49                     <para>実数, 整数, 論理値または文字列行列
50                         
51                     </para>
52                     
53                 </listitem>
54                 
55             </varlistentry>
56             
57             <varlistentry>
58                 
59                 <term>dims</term>
60                 
61                 <listitem>
62                     
63                     <para>正の整数のスカラーまたはベクトル
64                         
65                     </para>
66                     
67                 </listitem>
68                 
69             </varlistentry>
70             
71             <varlistentry>
72                 
73                 <term>y</term>
74                 
75                 <listitem>
76                     
77                     <para>セル
78                         
79                     </para>
80                     
81                 </listitem>
82                 
83             </varlistentry>
84             
85         </variablelist>
86         
87     </refsection>
88     
89     <refsection>
90         
91         <title>説明</title>
92         
93         <para>
94             
95             <function>num2cell</function> は,
96             
97             実数, 整数, 論理値または文字列行列 <varname>x</varname> をセルに変換します.
98             
99             <varname>dims</varname>が指定されない場合,
100             
101             <varname>y</varname> は <varname>x</varname>と同じ大きさとなります.
102             
103         </para>
104         
105         <para>
106             
107             しかし,<varname>dims</varname> が指定された場合, 
108             
109             <varname>dims</varname>で指定された
110             
111             <varname>x</varname> の次元は1に減らされます.
112             
113             更に, <varname>y</varname> の要素の次元は,
114             
115             その数値が<varname>dims</varname> 次元ベクトルである
116             
117             <varname>x</varname> の大きさの次元に等しくなります.
118             
119         </para>
120         
121         <para>
122             
123             例えば, 
124             
125             size(<varname>x</varname>)=[2 3 4 5 6] および
126             
127             <varname>dims</varname>=[2 4]の場合, 
128             
129             size(<varname>y</varname>)= [2 1 4 1 6] となります,
130             
131             2番目および4番目の要素の大きさは1に減らされます.
132             
133             そして, size(<varname>y</varname>(i))= [1 3 1 5 1]
134             
135             は 2番目と4番目の次元の大きさが
136             
137             <varname>x</varname>の2番目及び4番目の大きさに等しいことを意味します.
138             
139         </para>
140         
141     </refsection>
142     
143     <refsection>
144         
145         <title>例</title>
146         
147         <programlisting role="example"> 
148             
149             A=[1 2; 3 4]
150             
151             num2cell(A)
152             
153             M = hypermat([2 3 2 2],1:24)
154             
155             c=num2cell(M,[1 2])
156             
157             size(c)
158             
159             size(c(1).entries)
160             
161             
162             
163             A=["a", "b"; "c" "d"]
164             
165             num2cell(A)
166             
167         </programlisting>
168         
169     </refsection>
170     
171     <refsection role="see also">
172         
173         <title>参照</title>
174         
175         <simplelist type="inline">
176             
177             <member>
178                 
179                 <link linkend="cell">cell</link>
180                 
181             </member>
182             
183             <member>
184                 
185                 <link linkend="cell2mat">cell2mat</link>
186                 
187             </member>
188             
189         </simplelist>
190         
191     </refsection>
192     
193 </refentry>
194