# clip

The 3ms criterion commonly used to measure potential for chest injury.

## Syntax

[x,y] = clip(time, accel, window, mode=0)

x = clip(time, accel, window, mode=1)

y = clip(time, accel, window, mode=2)

w = clip(time, accel, window, mode=3)

## Inputs

`time`- The time vector of data to analyze (in seconds).
`accel`- The acceleration vector. Must match length of
`time`vector and be real only. `window`- The window width (in seconds - usually 0.003 for chest).
`mode`-
- 0
- Output the clip window x,y vectors.
- 1
- Output the clip window x vector.
- 2
- Output the clip window y vector.
- 3
- Output the height of the clip window, and its left and right end points as a single vector.

## Outputs

- x
- The x coordinates of the clip window.
- y
- The y coordinates of the clip window.
- w
- The height of the clip window, and its left and right end points.

## Example

Find the clip window dimensions associated with a pair of time and acceleration vectors.

```
t = [0: 0.0001: 0.01];
accel = sin(100 * pi * t);
w = clip(t, accel, 0.003, 3)
```

```
w = [Matrix] 1 x 3
0.89101 0.00350 0.00650
```

## Comments

clip computes the maximum value that the linear interpolation of a time series (typically a chest resultant acceleration filtered to a 300 Hz cutoff) meets or exceeds for an interval of at least 3 ms, based on the linearly interpolated time series.