3D Plotting - 3-D Plotting3-D PlottingT MerckerAerospace...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3-D Plotting3-D PlottingT. MerckerAerospace Engineering and Engineering MechanicsThe University of Texas at AustinASE 201: Introduction to Computer ProgrammingApril 13, 2009T. Mercker3-D Plotting3-D PlottingIYou have already done 2-D plotting with plot() and scatter()IIn general, you hady=f(x)where x is an independent variable and y isa dependent variableIExample: The height of a thrown ball is dependent on timeh(t) =h+vy,t-12gt2T. Mercker3-D Plotting3-D PlottingIIn 3-D, you have three possibilities for curves1.You have 1 independent variable and two dependent variables such thatx(t) =f(t)y(t) =g(t)IThis defines a 3-D space int,xandyIThis scenario is represented by a line in 3-D space2.You have 1 independent variable and three dependent variables suchthatx(t) =f(t)y(t) =g(t)z(t) =h(t)IThis defines a 3-D space inx,yandzIThis scenario is represented by a line in 3-D space and is commonin the evolution of Cartesian coordinates in 3 dimensionsT. Mercker3-D Plotting3-D PlottingIWhen plotting lines in 3-D, there are built-in MATLAB functions that areanalogous to plot() and scatter()Iplot3() connects points by a line in 3-DISyntax:plot3(x1,y1,z1,x2,y2,z2,...,options)Iplot3 has the same capabilities and options as plotIscatter3() makes a point by point plot in 3-DISyntax:scatter3(x,y,z,options)Iscatter3 has the same capabilities and options as scatterT. Mercker3-D Plotting3-D Plotting...
View Full Document

This note was uploaded on 04/29/2009 for the course ASE 201 taught by Professor Hayes during the Spring '07 term at University of Texas.

Page1 / 16

3D Plotting - 3-D Plotting3-D PlottingT MerckerAerospace...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online