Answer All questions. Take screenshots when using MATLAB to write the scripts and insert them in your final report. 3. Plot a two-dimensional graph of the two vectors x=[ 10.2 * 30 40 50 60 70 ] and y = [11 23 14 16 22 23 25] using the plot command. Add to the graph a suitable title along with labels for the x-axis and the y-axis.
Answer All questions. Take screenshots when using MATLAB to write the scripts and insert them in your final report.
3. Plot a two-dimensional graph of the two
x=[ 10.2 * 30 40 50 60 70 ] and
y = [11 23 14 16 22 23 25] using the plot command.
Add to the graph a suitable title along with labels for the x-axis and the y-axis.
4. Plot the mathematical function y = 4x ^ 2 + 3 in the range x from - 7to + 7 o Include a title for the graph as well as labels for the two axes.
o Show the curve with a blue dashed line with circle symbols at the plotted points.
5. Plot the following four mathematical functions each with its own diagram using the subplot command. The functions are y = 2x ^ 3 - 4 z = x + 1 , d = x ^ 2 - 2 and v = x ^ 2 + 3 . Use the vector x=
[1 2 3 4 5 6 7 8 9 10] as the range for x.
o Include a title for the graph as well as labels for the two axes.
o Print the legend box
o Move the legend box to the south east
6. Use the surf command to plot a three-dimensional surface of elements of the following vectors: x =[1 2 3 4 5 6 7 8 9 10]. y =[1 2 3 4 5 6 7 8 9 10]. and z= sin(x) .^ * cos(y).
o There is no need to show title or axis information.
o display color scale
Step by step
Solved in 5 steps with 2 images