<< CL_init Utilities CL_isAlmostEqual >>

CelestLab >> Utilities > CL_inputParam

CL_inputParam

Simple user-friendly GUI for the input of parameters

Calling Sequence

varargout = CL_inputParam(desc)

Description

Parameters

desc:

List of parameter structures. Use CL_defParam to initialize each structure.

varargout:

Output variables (1 for each parameter structure + 1 optional 'OK' output variable). The parameter values in the varargout list are given in 'internal' units.

Authors

See also

Examples

desc=list(..
CL_defParam("param 1", val=1000, units=['m', 'km'], valid='$x > 0'),..
CL_defParam("param 2", val=[2,4,6], units=['Z'], valid='$x < 10', dim=[1,3]),..
CL_defParam("param 3", val=[1,2,3,4,5,6,7,8], dim=-1, accv=1:10)..
);
[v1, v2, v3] = CL_inputParam(desc) // error if "cancel" pressed
[v1, v2, v3, OK] = CL_inputParam(desc) // no error if "cancel" pressed

Report an issue
<< CL_init Utilities CL_isAlmostEqual >>