<< CL_intervLinspace Math CL_intervUnion >>

CelestLab >> Math > CL_intervSelectIn

CL_intervSelectIn

Values inside intervals

Calling Sequence

xres = CL_intervSelectIn(interv, x [, opt])

Description

Parameters

interv:

Set of intervals [start; end] (2xN)

x:

Set of values (1xP)

opt:

(string, optional) output option: "d", "b", "bs". Default is "d"

xres:

selected values (+ optional bounds and separators) (1xQ)

See also

Authors

Examples

interv = [[0.9; 2.9], [5.1; 6]];

// Example 1:
// Note: First bound is not included
x = 2 : 0.5 : 8;
CL_intervSelectIn(interv, x)
CL_intervSelectIn(interv, x, opt="b")
CL_intervSelectIn(interv, x, opt="bs")

// Example 2:
// Note: First bound is included
x = 0 : 0.5 : 8;
CL_intervSelectIn(interv, x)
CL_intervSelectIn(interv, x, opt="b")
CL_intervSelectIn(interv, x, opt="bs")

Report an issue
<< CL_intervLinspace Math CL_intervUnion >>