📄 exp2.m
字号:
%=================================================================
% Name:two-sided exponential signal
% This program is used to plot the curves of two-sided exponential
% signals.
%=================================================================
t=-5:0.01:5;
a1=input('输入最大常数a=');
a2=input('输入中等数值的常数a=') ;
a3=input('输入最小常数a=');
x1=exp(-a1*abs(t));
x2=exp(-a2*abs(t));
x3=exp(-a3*abs(t));
subplot(3,1,1);
plot(t,x1);
axis([-5,5,0,1.2]);
grid on;title('The two-sided exponential signal f=exp(-abs(a*t))')
subplot(3,1,2);
plot(t,x2);
axis([-5,5,0,1.2]);
grid on;
subplot(3,1,3);
plot(t,x3);
axis([-5,5,0,1.2]);
grid on;xlabel('time t')
%================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -