Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - Português


is_param

Check if a parameter is present in a parameter list

Syntax

[res,err] = is_param(list_name,param_name)

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 add in the list of parameters.

res

the result: %T is the parameter is present, %F otherwise.

err

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).

Description

This function checks if a parameter is present in a parameter list. If the err output parameter is not present, when an error occurs, a message is printed in the console.

Examples

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

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
  • add_param — Add a parameter to a list of parameters
Report an issue
<< init_param Parâmetros list_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:
Mon Mar 27 09:49:55 GMT 2023