3D Plotting

# 3D Plotting - 3-D Plotting 3-D Plotting T Mercker Aerospace...

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

3-D Plotting 3-D Plotting T. Mercker Aerospace Engineering and Engineering Mechanics The University of Texas at Austin ASE 201: Introduction to Computer Programming April 13, 2009 T. Mercker 3-D Plotting

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

View Full Document
3-D Plotting I You have already done 2-D plotting with plot() and scatter() I In general, you had y = f ( x ) where x is an independent variable and y is a dependent variable I Example: The height of a thrown ball is dependent on time h ( t ) = h 0 + v y , 0 t - 1 2 gt 2 T. Mercker 3-D Plotting
3-D Plotting I In 3-D, you have three possibilities for curves 1. You have 1 independent variable and two dependent variables such that x ( t ) = f ( t ) y ( t ) = g ( t ) I This defines a 3-D space in t , x and y I This scenario is represented by a line in 3-D space 2. You have 1 independent variable and three dependent variables such that x ( t ) = f ( t ) y ( t ) = g ( t ) z ( t ) = h ( t ) I This defines a 3-D space in x , y and z I This scenario is represented by a line in 3-D space and is common in the evolution of Cartesian coordinates in 3 dimensions T. Mercker 3-D Plotting

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

View Full Document
3-D Plotting I When plotting lines in 3-D, there are built-in MATLAB functions that are analogous to plot() and scatter() I plot3() connects points by a line in 3-D I Syntax: plot3(x1,y1,z1,x2,y2,z2,...,options) I plot3 has the same capabilities and options as plot I scatter3() makes a point by point plot in 3-D I Syntax: scatter3(x,y,z,options) I scatter3 has the same capabilities and options as scatter T. Mercker 3-D Plotting
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern