该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
最近要做课程设计 我的题目如上, 我的MATLAB软件是7.0版本。 程序代码如下
t0=1;
ts=0.001;
fc=10;
fs=1/ts;
df=0.3;
t=[-t0/2:ts:t0/2];
m=sqrt(2)*cos(2*pi*t);
c=cos(2*pi*fc.*t); %定义载波同相分量
b=sin(2*pi*fc.*t);
v=m.*c+imag(hilbert(m)).*b;
u=m.*c-imag(hilbert(m)).*b;
[M,m,dfl]=fftseq(m,ts,df);
M=M/fs;
[U,u,dfl]=fftseq(u,ts,df);
U=U/fs;
[V,v,dfl]=fftseq(v,ts,df);
V=V/fs;
f=[0:dfl:dfl*(length(m)-1)]-fs/2;
hold on;
figure(1)
subplot(1,2,1)
plot(t,m(1:length(t)));
axis([-1,1,-2,2]);
xlabel('时间');
title('未调信号')
subplot(1,2,2);
plot(f,abs(fftshift(M)))
xlabel('频率');
title('未调信号的频谱')
hold on;
figure(2);
plot(t,c(1:length(t)));
axis([-0.1,0.1,-2,2])
xlabel('时间');
title('载波')
figure(3);
subplot(2,2,1)
plot(t,u(1:length(t)));
axis([-0.2,0.2,-1.5,1.5]);
xlabel('时间');
title('上边带已调信号')
subplot(2,2,2)
plot(t,v(1:length(t)))
axis([-0.2,0.2,-1.5,1.5]);
xlabel('时间')
title('下边带已调信号');
subplot(2,2,3)
plot(f,abs(fftshift(U)))
title('上边带已调信号的频谱');
xlabel('频率');
subplot(2,2,4);
plot(f,abs(fftshift(V)))
title('下边带已调信号的频谱');
xlabel('频率')
运行后显示 Error in ==>(代码) at 12
[M,m,dfl]=fftseq(m,ts,df);
貌似是说MATLAB中没有找到可运行的FFTSEQ函数 。 请高手指点一二,这种情况我应该怎么继续?