Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.0.0 - English


add_param

Add a parameter to a list of parameters

Syntax

param_list = add_param(list_name,param_name,param_value)

Arguments

list_name

the list of parameters. This list must have been initialize by a call to init_param.

param_name

a string. The name of the parameter to be added in the list of parameters.

param_value

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.

param_list

the updated list of parameters.

Description

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.

Examples

mylist = init_param();
mylist = add_param(mylist,'minbound',[0 0 0]);

See also

  • init_param — Initialize the structure which will handles the parameters list
  • set_param — Set the value of a parameter in a parameter list
  • get_param — Get the value of a parameter in a parameter list
  • remove_param — Remove a parameter and its associated value from a list of parameters
  • is_param — Check if a parameter is present in a parameter list

History

VersionDescription
5.5.0 Second output argument (err) tagged as obsolete.
5.5.1 Second output argument removed.
Report an issue
<< Parameters Parameters get_param >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Oct 24 14:30:04 CEST 2023