Question: Provide the matlab code of the following: ( 2 D Plots ) Let x be a row vector all integers from 1 to 1 0

Provide the matlab code of the following: (2D Plots) Let x be a row vector all integers from 1 to 10. The following functions of x are
defined:
y1=sin5x
y2=e-2x
Use the hold on/off command, plot y1 and y2 against x. Use the following specifications:
For the y1 plot Use green dashed lines of size 2. Also use pentagram markers of size 12,
with face color of red and edge color of blue.
For the y2 plot: Use the stairs plot with a line width of 2 and a magenta line color.
Title of the Graph: SAMPLE PLOTS
Set the Font Size of the title to 18 and its color to red.
x- axis label: Samples
y-axis label: Functions
Set the Font Size of the x- axis and y- axis labels to 12 and their color to blue.
Add a legend to the graph. The legend for y1 is Function 1 and the legend for y2 should
be Function 2.
(3D Plots) Given the expression:
z=y24-2sin(1.5x)
Create a 3D plot for the domain -3x3 and -3y3 with a spacing of 0.5 for both x
and y using,
Mesh
Surf
Contour
Mesh with contour
Surf with contour
 Provide the matlab code of the following: (2D Plots) Let x

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!