<< CL_configSet Utilities CL_defParam >>

CelestLab >> Utilities > CL_dataGet

CL_dataGet

Retrieve the value of CelestLab data

Calling Sequence

[val] = CL_dataGet(name [, local])
[val] = CL_dataGet()

Description

Parameters

name:

(optional, string) Data name. Default is "" (all data structure) (1x1)

local:

(optional, boolean) %t if local variable is returned if it exists. Default is %t (1x1)

val:

Value of the field (can be a structure or a matrix of any size)

Authors

See also

Examples

muSun = CL_dataGet("body.Sun.mu");
au = CL_dataGet("au");
body = CL_dataGet("body");

CL_dataGet("mu", local=%f) // => default value
%CL_mu = CL_dataGet("body.Sun.mu"); // change local change
CL_dataGet("mu") // => local value
%CL_mu = CL_dataGet("mu", local=%f) // reset to default value

// Retrieve CelestLab's whole (internal) data structure:
s = CL_dataGet()

Report an issue
<< CL_configSet Utilities CL_defParam >>