??? Attempt to reference field of non-structure array.急急急!!!!

[复制链接]
查看11 | 回复1 | 2011-5-3 16:38:51 | 显示全部楼层 |阅读模式
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.
急求高手解释,哪里出错了

回复

使用道具 举报

千问 | 2011-5-3 16:38:51 | 显示全部楼层
试图引用非结构化数据而出错,不懂哦我
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行