nth order filter approximations to LPF not giving proper results
3 次查看（过去 30 天）
Hi , i am trying to implement an analog filter Butterworth Low pass filter and want to observe the effect of order over the magnitude of that filter I have tried using the inbuilt 'butter(n,Wn,ftype)' filter but want to implement the same using the base algoritm without any inbuilt function .I have tried but not getting the proper results .
The input parameters are as follows:
w=(0,4*Pi) at 8pi/1000 intervals .
Thanks in advance .
Harsh Kumar 2023-6-27
I understand that you are trying to implement an analog butterworth filter with the given specifications programmatically instead of using MATLAB in-built ‘butter’ function .
You can use the fundamental mathematical strategy to implement it in MATLAB as well.
Please refer to the below code snippet for better understanding.
%frequency over which you are iterating
%pre-setting to zero
%checking for multiple orders(optional)
%implement the equation of butterworth filter