File Exchange

image thumbnail


version 1.1 (129 KB) by

The Aircraft Library

6 Ratings



View License

Airlib is a library of aircraft models to be used with Simulink 3.1 (MATLAB 5.3) or later (tested on 6.1 & 6.5).

It is based on two basic blocks that implement a continuous-time and a discrete-time nonlinear general aircraft model. Both blocks are largely based on the FDC toolbox, written by Marc Rauw and available at the MATLAB Central website.

The initial version, dated Feb 2003, contains 13 different nonlinear aircraft models including, among others, a Boeing 747, an F4 Phantom, an F104 Starfighter, an X15, an IAI Pioneer (unmanned), a Convair 880 and four different Cessna models.

Each model is a link to one of the two library blocks, but of course with different parameters on the mask. Infact, the type of aircraft is entirely specified by the inertial and aerodynamic parameters typed on the mask, which also includes a very detaliled help that describes the meaning of inputs, states, outputs and mask parameters.

An example showing a Boeing 747 in a (closed loop) straight and level flight is also given.

In May 2003 a very effective matlab function (air3m.m) was added to allow the user to easily trim any given aircraft for any combination of desired speed, altitude, and flight path angle.

In March 04, a function that computes the aerodynamic derivatives from the linear model matrices was added, together with a simulink model that compares two different ways of handling the wind in the equations of motions.

In July 2006 a full guidance and control system based on the feedback linearization of the aircraft kinematic and dynamics was added. The scheme includes a waypoint generation system, and can be easily adapted to any aicraft with known aerodynamics coefficients.

Please have a look to the Readme.txt file for more detailed info.

Giampiero Campa, March 2004

Comments and Ratings (10)

Giampiero Campa

Giampiero Campa (view profile)

You can fix 3D visualization in the general controller model for versions 2014b and later by deleting the sfunxyz.m file and installing 3Dscope:

zhao mask

Giampiero Campa

Giampiero Campa (view profile)

Note that the general controller model features also a (non essential) 3D scope which does not work properly for 2014b and later versions. I will try to fix it at some point. If you need it sooner rather than later please let me know.

ying wong



Tiago (view profile)

Dear Giampiero Campa,

Do you have some documentation or something to help the understand your model?

Tiago Cariolano

hasan bafayad

i just need to solve the boing 747 for
control and stability i hope it's usefull for me

az bew

I look for aircraft Pilatus-9M !

aaa ddd

tariq abrass

very good

Nyan Tun



Removed old license

Removed all library links in the model airgk.mdl, so now it runs "out of the box".

A general fedback linearization tracking controller has been added.

Removed extra dir info from zip file

Renamed everything lowercase

Final clean-up of every file. No further updates are planned.

A function that computes the aerodynamic derivatives from the linear model matrices, and a simulink model that compares two different ways of handling the wind have been added.

Minor changes in the help file.

The file info.xml has been updated.

A very useful matlab function (air3m.m) to find the trim point of a general aircraft at a given speed, altitude, and gamma, has been included in the library.

Changed the file exchange category

Small error in Demos.m corrected.

Minor changes in the mask help.

MATLAB Release
MATLAB 5.3 (R11)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video