Hello I'm a beginner with Matlab and need help designing a filter

I was thinking of doing a 4th order Butterworth bandpass filter with center frequency of 455KHz and bandwidth of 100KHz. The passband gain should be 10dB

 Accepted Answer

Have you started with this?
Also
filterDesigner
is a good tool.

4 Comments

I haven't started. I've just been reading on the topic alot but I'm not doing too good. Do you have an idea how to start the code or an example
Try the filterDesigner
There are a lot of tradeoffs when designing filters, and you will need to play with the tool to optimize for what you need.
[A,B,C,D]=butter(10,[395 405]/750);
d = designfilt('bandpassiir','FilterOrder',4,...
'HalfPowerFrequency1',395,'HalfPowerFrequency2',405 ...
'SampleRate',1500);
sos=ss2sos(A,B,C,D);
fvt=fvtool(sos,'Fs',1500);
legend(fvt,'butter','designfilt')
I'm getting this error message
'SampleRate',1500);
Error: Unexpected MATLAB expression.

Sign in to comment.

More Answers (0)

Asked:

on 10 Feb 2018

Commented:

on 13 Feb 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!