q6013.m
来自「电路与系统专业的matlab程序。有很多经典的实例。」· M 代码 · 共 12 行
M
12 行
%所有的有界符号函数均可以用门函数分段相加表示
ezplot('heaviside(t+1)',[-2,2]);
ezplot('heaviside(t+1)-heaviside(t)',[-2,2],2);%门函数
y1=sym('(t+1)*(heaviside(t+1)-heaviside(t))');
ezplot(y1,[-1.2,1.2])
y2=sym('(-t+1)*(heaviside(t)-heaviside(t-1))');
ezplot(y2,[-1.2,1.2])
ezplot(y1+y2,[-1.2,1.2]) %三角函数
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?