Question: MATLAB Plot y = exp(x) in the interval [-3, 3] using a solid line. Now plot a linear approximation of e^x (i.e. y = x)
Plot y = exp(x) in the interval [-3, 3] using a solid line. Now plot a linear approximation of e^x (i.e. y = x) using a dashed line with a square marker in a different color and a quadratic approximation of e^x (i.e. y = 1 + x + x^2/2) using a dotted line and a circle marker in another color. Title the plot "Plots of Approximations of exp(x)." Label the y-axis as "Approximations of exp(x)" and the x-axis as "x". Use text to label the exp(x) curve at position (2, 8). Use gtext to label the linear and quadratic approximations of exp(x) appropriately. Set axes limits to [-3, 3, -5, 15]. Repeat the plots in a. but this time identify the plotted lines using legend instead of text and gtext
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
