FilterNested Function

Extracts a range of divisions from a multi-division vector. It is expected to be used to process data generated by a multi-level multi-step analysis.

Its operation is best described by an example:

Consider a multi-step analysis where two variables are being stepped. At the inner level, a resistor (e.g. R1) value is varied over 10 steps from 1k to 5k. At the outer level, the analysis temperature is stepped through values -40, 0, 25, 70 and 125. In total there are 50 steps.

The function can extract any one division out of the 50 at level 0. It can also extract groups of ten divisions, the number of steps at the inner level.

FilterNested(data, 0, n) n can be a value from 0 to 49 and specifies a single division out of the total of 50

FilterNested(data, 1, n) n can be a value from 0 to 4 and specifies the outer level index. This will return a 10 division vector with the data for the specified outer level step

Arguments

Number Type Compulsory Default Description
1 Real or complex Yes Data
2 Real Yes Level number
3 Real Yes Step number

Argument 1

Input data

Argument 2

Level number: a value from 0 to the number of nested levels less one in the multi step analysis. For a two level analysis, the value can be 0 or 1

Argument 3

Step number at the level defined by argument 2. See description and example above

Returns

Return type: Same as input

Filtered output data