Create a vector of x values from 0 to 20π, with a spacing of π / 100, where
y = x ∙ sin(x)
z = x ∙ cos(x)
12. Create an x-y plot of x and y.
13. Create a polar plot of x and y.
14. Create a three-dimensional line plot of x,y, and z. Be sure to add a title and lables.
15. Figure out how to adjust your input to plot3 in Problem 14, to create a graph that looks like a tornado.
1
Expert's answer
2017-01-05T08:21:11-0500
x = 0:pi/100:20*pi; y = x.*sin(x); z = x.*cos(x); plot(x,y); pause(3); polar(x, y); pause(3); plot3(y,z,x); xlabel('Axis for Y variable'); ylabel('Axis for Z variable'); zlabel('Axis for X variable'); title('Tornado');
Comments
Just incorrect display of the single quote, we've fixed it.
I don't know what ' means. can someone explain it please?
Leave a comment