This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


System object: dsp.BiquadFilter
Package: dsp

Reset states of biquad filter object




reset(H) resets the filter states of the biquad filter object,H, to the specified initial conditions. After the step method applies the biquad filter object to nonzero input data, the states may change. Invoking the step method again without first invoking the reset method may produce different outputs for an identical input.

Example of resetting filter states:

n =0:20;
x = cos(pi/4*n)+sin(pi/2*n);
H = dsp.BiquadFilter;
y = step(H,x');
% Apply step method without invoking reset
y1 = step(H,x');
isequal(y,y1) % Returns a 0
% Reset filter states to zero
% Now invoke step method
y2 = step(H,x');
isequal(y,y2) % Returns a 1
Was this topic helpful?