Copyright (c) 2011, Gus Brown with Modification by Louis Edelman 2015
All rights reserved.
Generates a command script to rapidly run Xfoil for a designated airfoil coordinates file, NACA airfoil, or coordinates matrix. Give the flexibility to pull detailed data (Cp, Cf, H, etc) or just the polar data for a single alpha or vector of alphas. All data is stored as a structured data set with the first left hand operator corresponding to the polar data and the second the detailed results.
Note that you need to have Xfoil 6.99 (http://web.mit.edu/drela/Public/web/xfoil) in the same directory to run this code.
If not requested as an output, parsing the detailed results will be skipped to save on cost.
Outputs can be manipulated as standard double precision vectors or matrices using standard structured data calls.
Louis Edelman (2023). Xfoil Interface Updated (https://www.mathworks.com/matlabcentral/fileexchange/49706-xfoil-interface-updated), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Xfoil Interface
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Added a version of the function that targets specific Cl values instead of alpha. This is virtually identical to the origninal script and I wrote it a few years back when I did the original. I'm 90% sure it is debugged, but some probably still exist.
Fixed file rename that occurred at last update.
Added warning if one or more requested alpha values fail to converge.