MATLAB Program to Plot a Function with Unit Step Function
t = linspace(0,10,1000); x = 0.5*(exp(-2t)-exp(-4t)).(t>=0) - 0.5(exp(-2*(t-3)+6)-exp(-4*(t-3)+12)).*(t>=3);
plot(t,x,'k','LineWidth',2); title('Plot of x(t)'); xlabel('t'); ylabel('x(t)'); grid on;
原文地址: https://www.cveoy.top/t/topic/f2yZ 著作权归作者所有。请勿转载和采集!