These four functions can be combined into one function, calledampl-res, that can be written to determine the type of the linear-phasefilter and to implement the appropriate amplitude response expression.This is explored in Problem P7.6. The use of these functions is describedin Examples 7.4 through 7.7.The zerophase function from the SP toolbox is similar in use to thefreqz function. The invocation [Hr,w, phi] = zerophase(b,a) returnsthe amplitude response in Hr, evaluated at 512 values around the top halfof the unit circle in the array w and the continuous phase response inphi. Thus, this function can be used for both FIR and IIR filters. Otherinvocations are also available
đang được dịch, vui lòng đợi..