- 积分
- 0
- 注册时间
- 2014-6-9
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2014-8-26 16:27:46
|
显示全部楼层
来自 北京
% Exercise1_8_a
syms t;
x1=cos(t*pi/5);
x2=sin(t*pi/5);
x3=exp(2*i*pi*t/3)+exp(i*pi*t);
% Exercise1_8_b
ezplot(x1,[-10,10])
grid on
figure
ezplot(x2,[-10,10])
grid on
x3_r=real(x3);
x3_i=imag(x3);
figure
hold on
ezplot(x3_r,[-6,6])
ezplot(x3_i,[-6,6])
grid on
hold off
% Exercise1_8_c
syms a;
x3_conj=subs(x3,'i','-i');
E1=int(x1*x1,t,-a,a);
E2=int(x2*x2,t,-a,a);
E3=int(x3*x3_conj,t,-a,a);
% Exercise1_8_d
figure
ezplot(E1,[0,30])
grid on
figure
ezplot(E2,[0,30])
grid on
figure
ezplot(E3,[0,30])
grid on
E1_T=subs(E1,a,5);
E2_T=subs(E2,a,5);
E3_T=subs(E3,a,3);
% Exercise1_8_e
P1=E1/(2*a);
P2=E2/(2*a);
P3=E3/(2*a);
figure
ezplot(P1,[0.1,60])
grid on
figure
ezplot(P2,[0.1,60])
grid on
figure
ezplot(P3,[0.1,60])
P1_NUM=subs(P1,'a',5)
P2_NUM=subs(P2,'a',5)
P3_NUM=subs(P3,'a',3)
% 有图形可以看出,三个P都随a值的增大而减小
% 估计P1,P2无穷的值为0.5,P3无穷的值为0
% 相比较而言,除了P3无穷与P3/T值比较为0/-1.5694e-33外,P1和P2的相等。
% 由数学计算可以预先得出其P无穷大的值
% Exercise1_8_f
% x1(t)和x2(t)的Pa收敛到同一个值,因为他们两个具有相同的周期和相同的幅值。
P=simple(x1+x2)
|
|