SearchVoidValues (FPScript)
Searches for void floating point values in a data set and passes their positions.
Syntax
SearchVoidValues(DataSet)
The syntax of the SearchVoidValues function consists of the following parts:
Part |
Description |
---|---|
DataSet |
The data set in which a search is to be performed for void values. Permitted data structures are data series, data matrixsignal, space curve und . All numeric data types are permitted. |
Remarks
For complex data types, a value is classified as void if the real or imaginary part is void. All points in aggregate data structures are recognized as void when at least one component among them is void. If DataSet is one dimensional, the result is a data series with the found value positions. Otherwise, it is a data matrix with 2D indices.
If the argument is a list, then the function is executed for each element of the list and the result is also a list.
Available in
FlexPro Basic, Professional, Developer Suite
Examples
SearchVoidValues({1.,?,3.,?,1.}) |
Results in {1, 3}. |
Signal.Y[SearchVoidValues(Signal.Y)] = 0 |
Sets all void values in the Y component of a signal to the value 0. |