NACA 5 digit Airfoil Generator
"naca5gen.m" Generates the NACA 5 digit airfoil coordinates with desired no. of panels (line elements) on it.
FEATURES:
*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
INPUTS:
[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)
OUTPUTS:
[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
EXTENSION:
Being a function, the airfoil generator can be called several times from a loop to generate any number of airfoil data files.
Cite As
J. Divahar (2026). NACA 5 digit Airfoil Generator (https://uk.mathworks.com/matlabcentral/fileexchange/23241-naca-5-digit-airfoil-generator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Aerospace and Defense > Aerospace Blockset > Guidance, Navigation, and Control (GNC) >
- Industries > Aerospace and Defense > Airfoil tools >
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Coordinate Systems >
Tags
Acknowledgements
Inspired: rafael-aero/XFOILinterface, CB2: Airfoil Optimization with GUI
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
