给出虚部实部matlab仿真波形,《基于MATLAB的信号与系统实验指导》编程练习试题...

专业资料

2连续时间信号在MATLAB中的表示

2-1.利用MATLAB命令画出下列连续信号的波形图

(1)

>> t=0:0.01:3;

>> ft=2*cos(3*t+pi/4); >> plot(t,ft),grid on; >> axis([0 3 -2.2 2.2]); >> title('2cos(3t+pi/4)')

(2)

>> t=0:0.01:3; >> ft=2-exp(-t);

>> plot(t,ft),grid on;

>> title('(2-exp(-t))u(t)')

word完美格式

专业资料

(3)

>> t=-1:0.01:1;

>> ft=t.*(uCT(t)-uCT(t-1)); >> plot(t,ft),grid on >> axis([-1 1 -0.2 1.2]); >> title('t[u(t)-u(t-1)]')

(4)

>> t=-1:0.01:3;

>> ft=(1+cos(pi*t)).*(uCT(t)-uCT(t-2)); >> plot(t,ft),grid on >> axis([-1 3 -0.2 2.2]);

>> title('[1+cos(pi*t)][u(t)-u(t-2)]')

word完美格式

专业资料

2-2.利用MATLAB命令画出下列复信号的实部、虚部、模和辐角

(1)

>> t=0:0.01:3;

>> ft=2+exp(i*(pi/4)*t)+exp(i*(pi/2)*t);

>> subplot(2,2,1);plot(t,real(ft));title('实部');axis([0 3 0 4]);grid on; >> subplot(2,2,2);plot(t,imag(ft));title('虚部');axis([0 3 0 2]);grid on; >> subplot(2,2,3);plot(t,abs(ft));title('模');axis([0 3 0 4]);grid on; >> subplot(2,2,4);plot(t,angle(ft));title('相角');axis([0 3 0 2]);grid on;

(2)

t=0:0.01:3;

>> ft=2*exp(i*(t+pi/4));

>> subplot(2,2,1);plot(t,real(ft));title('实部');axis([0 3 0 2]);grid on; >> subplot(2,2,2);plot(t,imag(ft));title('虚部');axis([0 3 0 2]);grid on;

word完美格式

专业资料

>> subplot(2,2,3);plot(t,abs(ft));title('模');axis([0 3 0 4]);grid on; >> subplot(2,2,4);plot(t,angle(ft));title('相角');axis([0 3 0 4]);grid on;

2-3.利用MATLAB命令产生幅度为1、周期为1、占空比为0.5的一个周期矩形脉冲信号

>> t=-0.5:0.01:3;

>> ft=square(2*pi*t,50);

>> plot(t,ft);grid on;axis([-0.5 3 -1.2 1.2]);

>> title('幅度为1、周期为1、占空比0.5的周期举行脉冲信号')

word完美格式

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值