plotRotation

plotRotation - % % % % % % % % % % % % % % % % % % % % % %...

This preview shows pages 1–2. Sign up to view the full content.

% 10/21/2009 11:47 PM % Function Name: plotRotation % Inputs: 1. x, a vector of x points % 2. z, a vector of z points % 3. theta, a vector of thetas % Outputs: there should be no outputs % % Function % Write a function named plotRotation that takes in three inputs of % vectors x, z, and theta. The function should plot three plots in the % same figure by using the subplot command. The figure should have 1x3 % plots and the plots should be in the following order: % 1. z vs. x - Titled as 'z vs. x'. Note that you will have to use % plot3() to correctly plot this in the xz plane rather than the yx % plane as plot() would do. Also, you should use view(0, 0) to make % the plot produced by plot3() show up as 2D as shown in the example % image. Do *NOT* set the axis for this plot. % % 2. z vs. x (about x) - Titled as 'z vs. x about x using mesh'. A % plot of the rotation of the z vs y line (from plot 1) rotated % around the x axis using mesh() with flat shading and a square axis. % % 3. z vs. x (about z) - Titled as 'z vs. x about z using surf'. A

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/27/2009 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.

Page1 / 2

plotRotation - % % % % % % % % % % % % % % % % % % % % % %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online