1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) DIGITEO 2008-2010 - Yann COLLETTE
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
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: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="add_param">
15 <refname>add_param</refname>
16 <refpurpose>Add a parameter to a list of parameters </refpurpose>
19 <title>Calling Sequence</title>
20 <synopsis>[param_list,err] = add_param(list_name,param_name,param_value)</synopsis>
23 <title>Arguments</title>
26 <term>list_name</term>
28 <para>the list of parameters. This list must have been initialize by a call to init_param.
33 <term>param_name</term>
35 <para>a string. The name of the parameter to be added in the list of parameters.
40 <term>param_value</term>
42 <para>the value associated to the parameter param_name. This parameter is optional. You can set the value of this parameter via a call to set_param.
47 <term>param_list</term>
49 <para>the updated list of parameters.
56 <para>an error flag which is set to %T if list_name is not of type plist (this list has not been initialized by a call to init_param).
63 <title>Description</title>
65 This function creates a new parameter in a list of parameters. You can set the value of the parameter using this function or you can set it via a call to set_param.
69 <title>Examples</title>
70 <programlisting role="example"><![CDATA[
71 mylist = init_param();
72 mylist = add_param(mylist,'minbound',[0 0 0]);
75 <refsection role="see also">
76 <title>See Also</title>
77 <simplelist type="inline">
79 <link linkend="init_param">init_param</link>
82 <link linkend="set_param">set_param</link>
85 <link linkend="get_param">get_param</link>
88 <link linkend="remove_param">remove_param</link>
91 <link linkend="is_param">is_param</link>