| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Aerospace Toolbox |
| Contents | Index |
| Learn more about Aerospace Toolbox |
load(h, bodyDataSrc)
h.load(bodyDataSrc)
load(h, bodyDataSrc, geometrysource)
h.load(bodyDataSrc,
geometrysource)
load(h, bodyDataSrc) and h.load(bodyDataSrc) load the graphics data from the body graphics file. This command assumes a default geometry source type set to Auto.
load(h, bodyDataSrc, geometrysource) and h.load(bodyDataSrc, geometrysource) load the graphics data from the body graphics file, bodyDataSrc, into the face, vertex, and color data of the animation body object h. Then, when axes ax is available, you can use this data to generate patches with generatePatches. geometrysource is the geometry source type for the body.
By default geometrysource is set to Auto, which recognizes .mat extensions as MAT-files, .ac extensions as Ac3d files, and structures containing fields of name, faces, vertices, and cdata as MATLAB variables. If you want to use alternate file extensions or file types, enter one of the following:
Auto
Variable
MatFile
Ac3d
Custom
Load the graphic data from the graphic data file, pa24-250_orange.ac, into b.
b=Aero.Body;
b.load('pa24-250_orange.ac','Ac3d'); ![]() | lla2ecef | machnumber | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |