Code covered by the BSD License  

Highlights from
Fast Chebyshev Transform (1D)

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 1.32 KB File ID: #4591

Fast Chebyshev Transform (1D)

by Greg von Winckel

 

08 Mar 2004 (Updated 29 Mar 2005)

Transfroms between nodal and spectral values.

| Watch this File

File Information
Description

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.

Acknowledgements
This submission has inspired the following:
ORTHPOLYFIT, ORTHPOLYVAL
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
26 Mar 2005 ZHANG Zhongqiang

In fact, the codes are incorrect.I found it in one perform. And I give another one .

28 Mar 2005 Greg von Winckel

Thanks. I forgot to upload the fix earlier. Line 20 should be

B=([F(1,:); 2*F(2:(N-1),:); F(N,:)]);

30 Apr 2008 sid tal

why doesn't this work for derivatives, when I use the standard iterative scheme to get the modes of the differentiated function?

19 Nov 2010 duncan sutherland

There appears to be a bug in the spectral to nodal transform for the highest mode, transforming (0,0,0,0,1) for example gives T_4/2 rather than T_4.

01 May 2011 Farbod

can we extend this script to 3D?

26 Oct 2011 rajesh

how to write matlab code for discrete chebyshev transform ?

Please login to add a comment or rating.
Updates
29 Mar 2005

Bug fixed in nodal-to-spectral transform

Tag Activity for this File
Tag Applied By Date/Time
approximation Greg von Winckel 22 Oct 2008 07:15:55
interpolation Greg von Winckel 22 Oct 2008 07:15:55
fast Greg von Winckel 22 Oct 2008 07:15:55
transform Greg von Winckel 22 Oct 2008 07:15:55
chebyshev Greg von Winckel 22 Oct 2008 07:15:55
polynomials Greg von Winckel 22 Oct 2008 07:15:55
lobatto Greg von Winckel 22 Oct 2008 07:15:55
points Greg von Winckel 22 Oct 2008 07:15:55

Contact us at files@mathworks.com