2

对于 MATLAB 中的模拟通信系统设计,首先我需要进行以下两个设计:

  1. 设计一个低通滤波器,以赫兹为单位过滤截止频率和采样频率的[slow]=lowpassfilter(s,fcut,fs)输入信号。sfcutfs

  2. 设计一个带通滤波器,它过滤具有截止频率和以赫兹为单位的采样频率的[sband]=bandpassfilter(s,fcutlow,fcuthigh,fs)输入信号。sfcutlowfcuthighfs

请你帮助我好吗?

4

2 回答 2

3

我发现这个问题有很多观点,但仍然没有很好的答案。

以下代码将满足您的需求。由于没有指定过滤器类型,我使用了一个巴特沃斯过滤器来演示它。s是输入信号,x是滤波后的信号。fs是以赫兹为单位的采样率。

% Design and apply the lowpass filter
order = 4;
fcut  = 8000;
[b,a] = butter(order,fcut/(fs/2),'low');
x     = filter(b,a,s);


% Design and apply the bandpass filter
order    = 10;
fcutlow  = 1000;
fcuthigh = 2000;
[b,a]    = butter(order,[fcutlow,fcuthigh]/(fs/2), 'bandpass');
x        = filter(b,a,s);
于 2015-06-23T22:09:09.433 回答
2

Matlab 具有fdatool用于滤波器设计的目的。是文档。您可以使用fdatool信号处理工具箱来完成所有这些任务。

于 2012-05-17T20:03:42.083 回答