View License

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

» Watch video

Highlights from
NACA 5 digit Airfoil Generator

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 2.11 KB File ID: #23241 Version: 1.0
image thumbnail

NACA 5 digit Airfoil Generator



Generates the NACA 5 digit airfoil coordinates

| Watch this File

File Information

"naca5gen.m" Generates the NACA 5 digit airfoil coordinates with desired no. of panels (line elements) on it.
 *Accurate coordinate generation with the required precision
 *Option to generate closed or open Trailing Edge
 *Additional separate outputs for camber line, upper surface and lower surface
 *A tst (test) file included
[1] NACA 5 digit designation (eg. '23012')
[2] No of panels (line elements) PER SIDE (upper/lower)
[3] Type of chord station spacing (Half cosine spacing / Uniform spacing)
[1] One can plot the generated airfoil, camber line and the leading edge circle by setting an option input wantPlot=1
[2] A data file can be generated by setting the option input wantFile=1
Being a function, the airfoil generator can be called several times from a loop to generate any number of airfoil data files.


This file inspired Rafael Aero/Xfoi Linterface.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
23 Jun 2011 Dirk

Dirk (view profile)

FYI python port here:

Comment only
16 Oct 2009 Austin Bond

This program works well for the example given but when I plot a NACA 65016 their is an obvious discontinuity at the point of max camber. I believe the equations used are correct, but I'm not exactly sure how the k1 constant is obtained. Either way I believe the z-values at the point of max camber are wrong.

Comment only

Contact us