Question #43129

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.

Expert's answer

`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

Assignment Expert05.01.17, 15:21Just incorrect display of the single quote, we've fixed it.

Wooder05.01.17, 12:15I don't know what ' means. can someone explain it please?

## Leave a comment