# 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.

## Syntax

mbindexatvalue(sig,val)

out = mbindexatvalue(...)

## Inputs

`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 = 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`