Question: ( 1 0 % ) Plotting. Problem 2 . 1 . ( 5 % ) Consider 7 5 equally spaced values of x in the

(10%) Plotting.
Problem 2.1.(5%) Consider 75 equally spaced values of x in the range -15x15. Plot the following
functions against x :
y(x)=-8x-x3sin(x)-100
t(x)=cos2(x4)
Include grid lines, axis labels, and a title in each plot. Plots should be on separate graphs (i.e.,2 graphs in total
for problem 2.1).
Hints: use the function "linspace(start value, end value, # values)" to generate vectors with equally spaced
values between a start value and an end value. Use the functions "xlabel", "ylabel", "title", "grid on", and
"figure" to add the x label of a graph, add the y label of a graph, add the title of a graph, add grid lines on a
graph, and create a new window for a new graph, respectively.
Problem 2.2.(5%) Create a mesh using 120 evenly spaced values in the interval -5x5, and 60 evenly
spaced values in the interval -10y10. Plot surface graphs for the following functions:
z(x,y)=x4+y211-20xy
v(x,y)=3sin2(y2)cos2(x4)
Include grid lines, axis labels, and a title in each plot. Plots should be on separate graphs (i.e.,2 graphs in total
for problem 2.2).
Hints: Use the functions "xlabel", "ylabel", "zlabel", "title", "grid on", and "figure" to add the x label of a
graph, add the y label of a graph, add the z label of graph, add the title of a graph, add grid lines on a graph,
and create a new window for a new graph, respectively.
( 1 0 % ) Plotting. Problem 2 . 1 . ( 5 % )

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 Programming Questions!