File Exchange

image thumbnail

Interpolation

version 1.0.0.0 (817 Bytes) by Sokthai Chan
Tschebyscheff interpolation.

1 Download

Updated 14 Nov 2005

No License

Tschebyscheff and Equi-interval method for interpolation program.

Cite As

Sokthai Chan (2020). Interpolation (https://www.mathworks.com/matlabcentral/fileexchange/6960-interpolation), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Vassili Pastushenko

I join Greg: this here is an example of antiMatlab in the sense of vectorization which is missing almost everywhere.

I join Duane: because the first command in this SCRIPT deletes all your variables, the script can have only some illustrative meaning, but is completely useless as a tool which every user would expect to find.

Finally, the example of Cauchy pdf is very specific, and any comparison of interpolation accuracy and speed with standard methods is missing (e.g. interp1(...,'spline')).

Should be completely revised.

Greg von Winckel

You can do this in one line of code
L=cos(acos(linspace(-1,1,Nl)')*(0:Nc))/cos(pi*(0:Nc)'*(0:Nc)/Nc);

Now just sample your function at N+1 Chebyhev points, store as a column vector and multiply by the rectangular matrix L.

Matlab User

I was looking for an example to improove my theory. It's exactly what I was looking for.
Thank you!!

Duane Hanselman

This is not a function. It is a simple example and nothing more. It has no value except as a demonstrative example.

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!