
For example, c130('color','b','wing',y) creates a blue airplane with yellow wings.

The 'color' option may be paired with options for specifying colors of specific parts of the plane. Color may be given by Matlab color name (e.g., 'red'), Matlab color abbreviation (e.g., 'r'), or RGB value (e.g., ). The xyz2rpy function may help with determining appropriate yaw values.Ĭ130(.,'color',AirplaneColor) specifies a color of all surfaces of the plane.

No special toolboxes required.Ĭ130(x,y,z) draws an airplane centered approximately at the location given by x,y,z, where x, y, and z must be scalar values.Ĭ130(.,'roll',RollDegrees) specifies roll of the aircraft in degrees relative to the approximate center of gravity of the aircraft.Ĭ130(.,'pitch',PitchDegrees) specifies pitch of the aircraft in degrees.Ĭ130(.,'yaw',YawDegrees) specifies yaw of the aircraft in degrees in the global coordinate system. The xyz2rpy function estimates roll, pitch, and yaw from given x,y,z coordinates. The c130 function draws a simple 3D airplane modelled after the Lockheed C-130.
