This script allows for fast transformation between nodal and spectral values at the Chebyshev-Gauss-Lobatto points by using the built-in functions fft/ifft. I've tested it with truncation as high as N=2^20 and it takes 1.7820 seconds. This script will handle an arbitrary number of data sets of the same length simultaneously.
Greg von Winckel (2023). Fast Chebyshev Transform (1D) (https://www.mathworks.com/matlabcentral/fileexchange/4591-fast-chebyshev-transform-1d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!