syms t y;
u=sym('Heaviside(t)')
y=exp(-t)*u;
%抽样信号
subplot(2,4,1);
ezplot(y,[-10,10]);%时域图
subplot(2,4,5);
Y=(1./(1+j*w));
w=linspace(-6*pi,6*pi,512);
plot(w,abs(Y));
title('1./(1+j*w)');
xlabel('w')
%频域图
subplot(2,4,2);
u=sym('Heaviside(t-3)')
y=exp(-(t-3))*u;
ezplot(y,[-10,10]);
%时移三个单位后的时域图
subplot(2,4,6);
Y1=1./(1+j*w);
Y2=exp(-j*3*w);
Y=Y1.Y2;
w=linspace(-6*pi,6*pi,512);
plot(w,abs(Y));
title('1./(1+j*w)*exp(-j3*w)');
xlabel('w') %时移性质
u =
Heaviside(t)
u =
Heaviside(t-3)
??? Attempt to reference field of non-structure array.
急求高手解释,哪里出错了
|