k-Wave Toolbox |
Filter signal using the Kaiser windowing method
filtered_signal = filterTimeSeries(kgrid, medium, signal) filtered_signal = filterTimeSeries(kgrid, medium, signal, ...)
filterTimeSeries
filters an input time domain signal using a low pass filter applied by applyFilter
with a specified cut-off frequency, stop-band attenuation, and transition bandwidth. It uses the Kaiser Windowing method to design the FIR filter, which can be implemented as either a zero phase or linear phase filter. The cutoff frequency is defined by a minimum number of temporal points per wavelength. A smoothing ramp can also be applied to the beginning of the signal to reduce high frequency transients.
|
k-Wave grid structure returned by makeGrid |
|
k-Wave medium structure |
|
the time domain signal to filter |
Optional 'string', value pairs that may be used to modify the default computational settings.
Input | Valid Settings | Default | Description |
---|---|---|---|
|
(boolean scalar) |
|
Boolean controlling whether the time signal is displayed before and after filtering. |
|
(boolean scalar) |
|
Boolean controlling whether the amplitude spectrum is displayed before and after filtering. |
|
(integer numeric scalar) |
|
The number of points per wavelength used to compute the filter cutoff frequency (setting to 0 turns of the filtering). |
|
(integer numeric scalar) |
|
The number of points per wavelength used to compute the length of the cosine start-up ramp (setting to 0 turns off the start-up ramp). |
|
(numeric scalar) |
|
Attenuation in decibels in the filter stop band. |
|
(numeric scalar) |
|
Size of the transition relative to the temporal sampling frequency. |
|
(boolean scalar) |
|
Boolean controlling whether a causal or zero phase filter is applied. |
|
the filtered time signal |
applyFilter
, smooth
, spectrum
expandMatrix | findClosest |
© 2009-2014 Bradley Treeby and Ben Cox.