<< CL_init Utilities CL_intervInters >>

CelestLab >> Utilities > CL_inputParam

CL_inputParam

Simple user-friendly input of parameters

Calling Sequence

[varargout] = CL_inputParam(desc)

Description

Parameters

desc:

List of parameter descriptions (list of tlist of type CLparam). Use CL_defParam to initialize each description.

varargout:

Output variables (1 for each parameter description + 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',dim=-1),..
CL_defParam("param 2",val=[1,2],units=['Z'],valid='$x < 10',dim=-1),..
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
<< CL_init Utilities CL_intervInters >>