Question: USING MATLAB*** Make a script to evaluate the following equations and make some related plots: a) y = ax2 + bx + c with a=2,

USING MATLAB***

Make a script to evaluate the following equations and make some related plots:

a) y = ax2 + bx + c with a=2, b=4, c=8, and x=3.5. Just evaluate y.

b) same as (a) except rewrite to evaluate for integer values of x between 0 and 10

c) plot y(x) from part (b)

d) p = p0exp(-cx) with p0=1.6, c=4, x=3.5. Just evaluate p.

e) same as (d) except rewrite to evaluate for values of x between 0 and 10 in increments of 0.1.

f) plot p(x) from part (e) on normal linear axes and separately on a semi-log plot.

g) re-do parts e&f 2 more times with different decay constants, c=0.3 and c=1.5. Add those curves to your plot with a different colored line for each decay constant (you will need the hold on command to plot multiple curves on the same figure panel).

h) z = hsin with h=4 and =31. Just evaluate z. Note theta is in degrees.

i) z = (hsin)exp(-c), provide a plot of z() for =0 to 4, h=100, and c=0.3. Note that theta is in radians.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!