For an analog communication system design in MATLAB firstly I need to do these two design:
Design a low-pass filter
[slow]=lowpassfilter(s,fcut,fs)which filters input signalswith cutoff frequencyfcutand sampling frequencyfsin Hertz.Design a band-pass filter
[sband]=bandpassfilter(s,fcutlow,fcuthigh,fs)which filters input signalswith cutoff frequenciesfcutlowandfcuthighand sampling frequencyfsin Hertz.
Could you please help me?
Matlab has
fdatoolfor filter design purposes. Here is the documentation. You can do all these tasks usingfdatooland the signal processing toolbox.