how to plot exp(t) in matlab

Register or Login to View the Solution or Ask a Question

Question : How to plot exp(t) in matlab ?Solution :We shall write the Matlab program to plot exponential function in the interval [-10 10]y=@(t) exp(t) % exponential functiont=[-10 10]; % in the intervalplot(t(:),y(t(:))) % plot matlab commandxlabel(‘t’)ylabel(‘y’)title(‘y(t)’)% output graph

This Question has been answered. 

Please Subscribe to See Answer or To Get Homework Help


Register or Login to View the Solution or Ask a Question