for t = 1:.01:10; if t <= pi x = 1.41.*exp(-t).*sin(t+0.785); elseif t > pi x = 1.41.*exp(-t).*sin(t+0.785)-(exp(-(t-pi).*sin(t-pi))); endend plot(t,x) xlabel('t')ylabel('X(t)')
MATLAB: What is wrong with the code, i am trying to plot below
equationplot
Best Answer