mbcrossvalue
Extract value crossing data that is used to detect time of events in order to compute some response over a reduced time domain by leveraging the corresponding index range.
Syntax
mbcrossvalue(tim,sig,val)
out = mbcrossvalue(...)
Inputs
- tim
- Time data.
- sig
- Signal data.
- val
- Crossing value.
Outputs
- out
- Output.
Examples
Example with output argument.
t = [0:0.1:10];
s = sin(2*pi*t);
out = mbcrossvalue(t, s, 0.0);
disp(out);
[Matrix] 1 x 20 Row[1] Columns[1:12]
0.50000 1.00000 1.50000 2.00000 2.50000 3.00000 3.50000 4.00000 4.50000 5.00000 5.50000 6.00000
Row[1] Columns[13:20]
6.50000 7.00000 7.50000 8.00000 8.50000 9.00000 9.50000 0.00000