<?xml version="1.0" encoding="UTF-8"?>
<!--
    * Scilab ( https://www.scilab.org/ ) - This file is part of Scilab
    * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
    *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
    *
-->
<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="en" xml:id="makecell">
    <refnamediv>
        <refname>makecell</refname>
        <refpurpose>Creates a cell array. </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>s = makecell(dims,a1,a2,...an)</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>dims</term>
                <listitem>
                    <para>
                        a vector with positive integer elements, the cell array dimension
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>a1,a2,...,an</term>
                <listitem>
                    <para>
                        Sequence of Scilab variables, <literal>n</literal> must be equal to <literal>prod(dims)</literal>
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>s</term>
                <listitem>
                    <para>
                        resulting cell array
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            <literal>s= makecell(dims,a1,a2,...an)</literal> creates a cell
            array of dimensions given by <literal>dims</literal> with the
            given input arguments. The <literal>ai</literal> are stored
            along the last dimension first.
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
makecell([2,3],1,2,3,'x','y','z')
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="cell">cell</link>
            </member>
            <member>
                <link linkend="matrix">matrix</link>
            </member>
            <member>
                <link linkend="size">size</link>
            </member>
            <member>
                <link linkend="brackets">brackets [..]</link>
            </member>
            <member>
                <link linkend="cat">cat</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
