⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex_1.m

📁 信号与系统分析以matlab实现
💻 M
字号:
%ex1      p130
clear all
%%%%%%%%%%向量法%%%%%%%%%%%%%%%%
t1=-2:0.01:5;
f1=(2-exp(-2*t1)).*heaviside(t1);
figure(1)
subplot(2,2,1),plot(t1,f1),grid on
t2=-1:0.01:2;
f2=cos(pi*t2).*(heaviside(t2)-heaviside(t2-1))
subplot(2,2,2),plot(t2,f2),grid on
t3=-5:0.01:5;
f3=heaviside(-3*t3+2);
subplot(2,2,3),plot(t3,f3),grid on
t4=-5:0.01:5;
f4=-1/2*t4.*heaviside(t4+2);
subplot(2,2,4),plot(t4,f4),grid on
%%%%%%%%%符号运算法%%%%%%%%%%%%
syms t
f1=sym('(2-exp(-2*t))*heaviside(t)');
f2=sym('cos(pi*t)*(heaviside(t)-heaviside(t-1))');
f3=sym('heaviside(-3*t3+2)');
f4=sym('-1/2*t4*heaviside(t4+2)');
figure(2)
subplot(2,2,1),ezplot(f1,[-2 5])
subplot(2,2,2),ezplot(f2,[-1 2])
subplot(2,2,3),ezplot(f3,[-5 5])
subplot(2,2,4),ezplot(f4,[-5 5])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -