# Chapter 10: Graphics MATLAB for Scientist and Engineers Using Symbolic Toolbox.

Post on 30-Dec-2015

217 views

Embed Size (px)

TRANSCRIPT

<p>Embedded Communications in Wireless Sensor Network</p>
<p>Chapter 10:GraphicsMATLAB for Scientist and EngineersUsing Symbolic Toolbox</p>
<p>You are going toReview the basics of plotting simple 2-D/3-D graphs and animationsCreate graphs with different attributesGenerate advanced animated graphs with timing controlHandle cameras for static and animated 3-D graphs2IntroductionGraphics Tool for exploring math objectsMuPAD: Easy 2-D, 3-D and animated graphsInteractive graph attributes editorPlot library does it all32-D Simple Function GraphsSimple function graph with range4</p>
<p>2-D Multiple Function GraphsMultiple plots wo/wt legend5</p>
<p>2-D Graphs Matrix EigenvaluesMax. Eigenvalues of a Matrix6</p>
<p>2-D Piecewise GraphsPiecewise functions7</p>
<p>2-D Function Graphs with Y RangeY range control8</p>
<p>2-D Simple AnimationsAdditional animation parameter</p>
<p>9</p>
<p>2-D Multiple Function AnimationsAdditional animation parameter</p>
<p>10</p>
<p>Default No. of Frames = 50</p>
<p>Attributes of 2D GraphsMesh Control111212</p>
<p>Attributes Control DetailsGrid, Ticks and Header12</p>
<p>Specifying Viewing BoxY Range of Viewing Box13</p>
<p>Specifying Viewing Box (cont.)Semi-automatic control of Y Range 14</p>
<p>3-D Function Graphs15</p>
<p>3-D Function Graphs (cont.)Generated 3-D Graphs16</p>
<p>Submesh for Smoother SurfaceSubmesh17</p>
<p>Without SubmeshWith Submesh3-D Animations18</p>
<p>Default No. of Frames = 50Animation Parameter</p>
<p>Flying CarpetAdvanced 2-D GraphsSeveral objects with different attributes in a single graph19</p>
<p>Plot primitivesAnatomy of Complex 2D GraphFunction and its tangential line at a point20</p>
<p>plot::Point2dplot::Line2dplot::Function2dAdvanced 2-D AnimationLine and point are animated.21</p>
<p>Moving Tangential LineFunction and its tangential line at a moving point</p>
<p>22</p>
<p>Example: Interpolated CurveOriginal curve and its sampled points</p>
<p>Interpolated points using cubic spline</p>
<p>Both curves and sampled points</p>
<p>23</p>
<p>Compare the CurvesOriginal curve, sampled points and interpolated curve24</p>
<p>Example: CycloidsA cycloid is the curve that you get when following a point fixed to a wheel rolling along a straight line. We visualize this construction by an animation in which we use the x coordinate of the hub as the animation parameter. The wheel is realized as a circle. There are 3 points fixed to the wheel: a green point on the rim, a blue point inside the wheel and a red point outside the wheel:25</p>
<p>source code can be found in 'ch10_graphics_demo.mn'Example: ODE Vector FieldWe wish to visualize the solution of the ordinary differential equation (ODE) y(x) = y(x)3 + cos(x) with the initial condition y(0) = 0. The solution shall be drawn together with the vector field v(x, y) = (1,y3 + cos(x)) associated with this ODE (along the solution curve, the vectors of this field are tangents of the curve).26</p>
<p>source code can be found in 'ch10_graphics_demo.mn'Example: Surface by Rotated CurveCreate an interpolated curve from a series of data points.Rotate the curve to get the corresponding surface. 27</p>
<p>source code can be found in 'ch10_graphics_demo.mn'RGB Colors28</p>
<p>OpacitySimple Animation29</p>
<p>Animation: Arc30</p>
<p>Animation ParametersAnimation parameters are for each objects.31</p>
<p>Animation Parameter - GlobalAnimation parameter serves as a global var.32</p>
<p>Time Synchronization33</p>
<p>Integration and Area34</p>
<p>source code can be found in 'ch10_graphics_demo.mn'TransformationsTranslate, rotate and scale a group of graph objects.35</p>
<p>Animated Rotation36</p>
<p>Using Camera37Animated CameraCamera trajectory</p>
<p>Lorenz attractor38</p>
<p>source code can be found in 'ch10_graphics_demo.mn'Key TakeawaysNow, you are able toplot 2-D and 3-D graphs using different objects and attributes,generate 2-D and 3-D animations with different objects and attributes,and to control colors and cameras for your graphs.39Notes40</p>

Recommended

CHROMA TOOLBOX: MATLAB IMPLEMENTATIONS FOR EXTRACTING ... ?· CHROMA TOOLBOX: MATLAB IMPLEMENTATIONS…