Matlab画常见信号函数一
1. 脉冲信号代码示例如下:t = linspace(0,1,101);y = [zeros(1,50),1,zeros(1,50)];plot(t,y)结果:2.2.阶跃信号代码示例如下:t = linspace(0,1,101);y = [zeros(1,50),ones(1,51)];plot(t,y);ylim([0 1.25]);结果如下:3.锯齿波代码示例如下:t = [0:0.1:20];f0 = sawtooth(t);su