mbindexatvalue

Extract value crossing data, used to detect the index of the time of events in order to compute some response over a reduced time domain by leveraging the corresponding index range.

Attention: Valid only with Altair Product Integration Extension

Syntax

mbindexatvalue(sig,val)

out = mbindexatvalue(...)

Inputs

sig
Signal data.
Type: double
Dimension: vector
val
Crossing value.
Type: double
Dimension: scalar

Outputs

out
Output.
Type: double
Dimension: scalar

Examples

Example with output argument.

t = [0:0.1:10];
s = sin(2*pi*t);
out = mbindexatvalue(s, 0.0);
disp(out);
[Matrix] 1 x 20
1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  0