How To: Run XFoil from MATLAB @JoshTheEngineer
How To: Run XFoil from MATLAB  @JoshTheEngineer
Uploaded January 2019 | Updated November 2026, 2 hours ago
This video shows how to run XFoil from a MATLAB script (for a Python script, see link below). This will come in handy for my future Vortex Panel Method video, where we will compare our pressure coefficient and lift coefficient results with the XFoil results. We'll go through three steps in this video.

1) Run XFoil and output the files we need (airfoil coordinates and pressure coefficient)
2) Load saved files from XFoil into MATLAB and view plots
3) Run XFoil from the MATLAB script itself, and view plots

===== RELEVANT LINKS =====
► You can download the MATLAB script from my website
joshtheengineer.com/2019/01/30/running-xfoil-from-matlab

► Do you want to run XFoil from Python instead? Download the script from my website
joshtheengineer.com/2019/02/06/running-xfoil-from-python

► Download XFoil
https://web.mit.edu/drela/Public/web/xfoil/

GitHub: Panel Methods
► github.com/jte0419/Panel_Methods

===== RELEVANT VIDEOS =====
UIUC Airfoil Database Download Python Code
→ youtube.com/watch?v=nILo18DlqAo

Load Airfoil Coordinates from UIUC Files into MATLAB
→ youtube.com/watch?v=xJYxMfGFrk8

Panel Method Motivation and Introduction
→ Coming soon!

Panel Method Geometry Definitions
→ Coming soon!

Source Panel Derivation and Coding
→ Coming soon!

Vortex Panel Derivation and Coding
→ Coming soon!

===== NOTES =====
► This is not a comprehensive XFoil user guide video. I'm only running the commands I need for my future Vortex Panel Method video.
► If you just want the NACA 4-digit airfoil coordinates, you can also use my NACA 4-Digit Airfoil MATLAB code to generate them.
How To: Run XFoil from MATLABSource/Vortex Panel Method: System of EquationsExplained: Area-Mach Number Relation [CPG]Explained: Pitch Stiffness [Flight Dynamics]Flow Around an Airfoil: Panel MethodsExplained: Static Text GUI [MATLAB]Explained: Conservation of EnergyHow To: Calculate F1 Car Aerodynamic Deceleration at Top SpeedExplained: Critical Mach Number [Airplanes]Source/Sink Flow (Incompressible Potential Flow)Explained: NACA 4-Digit GUI Part 8/10 [MATLAB]Source Panel Method: System of Equations
JoshTheEngineer |

How To: Run XFoil from MATLAB

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER