Creating 3-D Models with Patches 141 Introduction to Patch Objects 14-2 Defining Patches 14-2 Behavior of the patch Function Creating a Single Polygon Multi-Faceted Patches 146 Example- Defining a Cube -6 Specifying Patch Coloring 14-11 Patch Color Properties 14-11 Patch Edge Coloring 14-13 Example- Specifying Flat Edge and Face Coloring 14-13 Coloring edges with Shared Vertices 14-14 Interpreting Indexed and Truecolor Data 14-16 Indexed Color Data 14-16 Truecolor Patches 14-19 Interpolating in Indexed Color Versus Truecolor ..... 14-19 Volume visualization Techniques 15 Overview of volume visualization 15-3 Examples of Volu 153 Selecting Visualization Techniques ..15-3 Steps to Create a volume visualization 15-4 Volume visualization Functions ..15-5 Functions for Scalar data 15-6 Functions for Vector Data 15-6 Visualizing Scalar Volume Data 158 Techniques for Visualizing Scalar Data 158
xv 14 Creating 3-D Models with Patches Introduction to Patch Objects . . . . . . . . . . . . . . . . . . . . . . . . . 14-2 Defining Patches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-2 Behavior of the patch Function . . . . . . . . . . . . . . . . . . . . . . . . . 14-2 Creating a Single Polygon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-4 Multi-Faceted Patches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-6 Example – Defining a Cube . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-6 Specifying Patch Coloring . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-11 Patch Color Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-11 Patch Edge Coloring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-13 Example – Specifying Flat Edge and Face Coloring . . . . . . . 14-13 Coloring Edges with Shared Vertices . . . . . . . . . . . . . . . . . . . 14-14 Interpreting Indexed and Truecolor Data . . . . . . . . . . . . . 14-16 Indexed Color Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-16 Truecolor Patches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-19 Interpolating in Indexed Color Versus Truecolor . . . . . . . . . 14-19 15 Volume Visualization Techniques Overview of Volume Visualization . . . . . . . . . . . . . . . . . . . . . 15-3 Examples of Volume Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3 Selecting Visualization Techniques . . . . . . . . . . . . . . . . . . . . . 15-3 Steps to Create a Volume Visualization . . . . . . . . . . . . . . . . . . 15-4 Volume Visualization Functions . . . . . . . . . . . . . . . . . . . . . . . 15-5 Functions for Scalar Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-6 Functions for Vector Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-6 Visualizing Scalar Volume Data . . . . . . . . . . . . . . . . . . . . . . . 15-8 Techniques for Visualizing Scalar Data . . . . . . . . . . . . . . . . . . 15-8
Visualizing MRI Data 159 Example- Ways to Display MRI DATA 159 Exploring Volumes with Slice Planes 15-1 Example- Slicing Fluid Flow Data 1515 Modifying the Color Mapping 15-18 Connecting Equal values with Isosurfaces 1520 Example-Isosurfaces in Fluid Flow Data 15-20 Isocaps Add Context to Visualizations 1522 Example- Adding Isocaps to an Isosurface Visualizing Vector Volume Data 15-2 Using Scalar Techniques with Vector Data Specifying Starting Points for Stream Plots 1528 Accessing Subregions of v olume 1530 Stream Line plots of vector data 1532 Displaying Curl with Stream Ribbons 1534 Displaying Divergence with Stream Tubes 1536 Creating Stream Particle Animations .15-39 Vector Field Displayed with Cone Plots 15-42 XVI Contents
xvi Contents Visualizing MRI Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-9 Example - Ways to Display MRI DATA . . . . . . . . . . . . . . . . . . 15-9 Exploring Volumes with Slice Planes . . . . . . . . . . . . . . . . . 15-15 Example – Slicing Fluid Flow Data . . . . . . . . . . . . . . . . . . . . 15-15 Modifying the Color Mapping . . . . . . . . . . . . . . . . . . . . . . . . . 15-18 Connecting Equal Values with Isosurfaces . . . . . . . . . . . . 15-20 Example – Isosurfaces in Fluid Flow Data . . . . . . . . . . . . . . . 15-20 Isocaps Add Context to Visualizations . . . . . . . . . . . . . . . . 15-22 Defining Isocaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-23 Example – Adding Isocaps to an Isosurface . . . . . . . . . . . . . . 15-24 Visualizing Vector Volume Data . . . . . . . . . . . . . . . . . . . . . . 15-27 Using Scalar Techniques with Vector Data . . . . . . . . . . . . . . 15-27 Specifying Starting Points for Stream Plots . . . . . . . . . . . . . . 15-28 Accessing Subregions of Volume Data . . . . . . . . . . . . . . . . . . 15-30 Stream Line Plots of Vector Data . . . . . . . . . . . . . . . . . . . . 15-32 Displaying Curl with Stream Ribbons . . . . . . . . . . . . . . . . . 15-34 Displaying Divergence with Stream Tubes . . . . . . . . . . . . 15-36 Creating Stream Particle Animations . . . . . . . . . . . . . . . . . 15-39 Vector Field Displayed with Cone Plots . . . . . . . . . . . . . . . 15-42
Grap Is This section discusses techniques for plotting data and provides examples showing how to plot annotate, and print graphs. Overview of MATLAB Graphics Editing plots and graphic object properties Basic Plotting Plotting vector and matrix data in 2-D representations Formatting graphs Adding annotations, axis labels, titles, and legends to graph Creating Specialized Plots Creating bar graphs, histograms, contour plots and other pecialized plots Displaying Bit-Mapped Ima Displaying and modifying bit-mapped images with MatLAB Printing and exporting Printing graphs on paper and exporting graphs to standard graphic file formats Handle graphics Objects MATLAB graphics objects and properties Figure Properties How to use figure properties Axes Properties How to use axes properties Related Information These other collections provide additional information about plotting 3-D Visualization Using viewing and lighting techniques to achieve complex Creating Graphical User Interfaces How to include menus, push buttons, text boxes, and other user interface objects in MATLAB applications
Graphics This section discusses techniques for plotting data and provides examples showing how to plot, annotate, and print graphs. Related Information These other collections provide additional information about plotting. Overview of MATLAB Graphics Editing plots and graphic object properties Basic Plotting Plotting vector and matrix data in 2-D representations Formatting Graphs Adding annotations, axis labels, titles, and legends to graphs Creating Specialized Plots Creating bar graphs, histograms, contour plots and other specialized plots Displaying Bit-Mapped Images Displaying and modifying bit-mapped images with MATLAB Printing and Exporting Printing graphs on paper and exporting graphs to standard graphic file formats Handle Graphics Objects MATLAB graphics objects and properties Figure Properties How to use figure properties Axes Properties How to use axes properties 3-D Visualization Using viewing and lighting techniques to achieve complex graphic effects Creating Graphical User Interfaces How to include menus, push buttons, text boxes, and other user interface objects in MATLAB applications
Overview of matlaB Graphics Plotting Your Data(p. 1-2) Illustrates the steps and commands used for a typical plotting task Editing Plots(p. 1-4) Techniques for editing plots. Using Plot Edit Mode(p. 1-5) Using the Plot Editor tool to modify plots Saving Your Work(p. 1-9) Ways to save your graph to reload into mAtLAB or export to external applications Changing Your view of an Axes Change your plot by zooming or rotating the axes (p.1-13) Using the Property Editor(p. 1-15) Easily get and set Handle graphics properties on any objects in the current hierarchy Using the Data Statistics Tool(p. 1-22) Perform basic statistical analysis on your data and plot the results
Introduction . . . . . . . . . . . . . . . . . . . . 1-2 Plotting Your Data . . . . . . . . . . . . . . . . . 1-3 Editing a Plot . . . . . . . . . . . . . . . . . . . 1-5 Using Plot Editing Mode . . . . . . . . . . . . . . 1-6 Saving Your Work . . . . . . . . . . . . . . . . . 1-10 Changing Your View of an Axes . . . . . . . . . . . 1-13 Using the Property Editor . . . . . . . . . . . . . . 1-15 Using the Data Statistics Tool . . . . . . . . . . . . 1-22 1 Overview of MATLAB Graphics Plotting Your Data (p. 1-2) Illustrates the steps and commands used for a typical plotting task. Editing Plots (p. 1-4) Techniques for editing plots. Using Plot Edit Mode (p. 1-5) Using the Plot Editor tool to modify plots. Saving Your Work (p. 1-9) Ways to save your graph to reload into MATLAB or export to external applications. Changing Your View of an Axes (p. 1-13) Change your plot by zooming or rotating the axes. Using the Property Editor (p. 1-15) Easily get and set Handle Graphics properties on any objects in the current hierarchy. Using the Data Statistics Tool (p. 1-22) Perform basic statistical analysis on your data and plot the results