1.
plot(peaks); set(findobj('Type','line'),'Color','b'); % 把所以线条的颜色设置为蓝色
2.
y=heaviside(t); % 阶跃函数 y=u(t)