MATLAB: How to plot signal for equation given below plot Equations are 1) Sin^2(wt)/t 2) sin(at)sinh(at)/2(a^2) 3) ((e^-t)+(e^-3t))u(t) Best Answer Try thist = linspace(0, 10, 100);w = 1;a = 1;y1 = sin(w*t)./t;y2 = sin(a*t).*sinh(a*t)./(2*a^2);y3 = (exp(-t)+exp(-3*t)).*heaviside(t);subplot(3,1,1)plot(t, y1)subplot(3,1,2)plot(t, y2)subplot(3,1,3)plot(t, y3) Related SolutionsMATLAB: How to plot two seperate figures the left and right channels Either: figureplot(t, y(:,1))figureplot(t, y(:,2))or: figuresubplot(2,1,1)plot(t, y(:,1))subplot(2,1,2)plot(t, y(:,2))depending on the result you want. MATLAB: Subplot label problem invisible you must start with plot subplot(3,5,1); plot(t, a); title('Agent-1 Error of Target-1') ylabel('X Dimension Error'); xlabel('Time'); subplot(3,5,6); plot(t, b); ylabel('Y Dimension Error'); xlabel('Time'); subplot(3,5,11); plot(t, c); ylabel('Z Dimension Error'); xlabel('Time'); Related QuestionReplace with another curve ?
Best Answer