A rational approximation of the Voigt function
This function file is a subroutine for rapid and accurate computation of the Voigt function. It covers the domain of practical interest 0 < x < 40,000 and 10^-4 < y < 10^2 required for applications using the HITRAN molecular spectroscopic database. The average accuracy in this domain is 10^-14. Use opt = 1 for more accurate and opt = 2 for more rapid computation. By default opt = 1.
Cite As
Sanjar Abrarov (2025). A rational approximation of the Voigt function (https://www.mathworks.com/matlabcentral/fileexchange/50355-a-rational-approximation-of-the-voigt-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired: voigt line shape fit
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.