Rank: 27262 based on 0 downloads (last 30 days) and 0 files submitted
photo

carlos lopez

E-mail
Lat/Long
-34.0, -56.0

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by carlos
Updated File Comments Rating
07 Sep 2009 tinterp - an alternative to griddata Linear and quadratic interpolation for scattered data Author: Darren Engwirda

I would like to have more information of the theory behind this. What it means that it is "quadratic"? Should it be exact for 2nd. degree functions? I tried this
X=[1:10 1:10];Y=[zeros(1,10) ones(1,10)];%Data points
f=100*(X').^2; %data points
tri=delaunay(X,Y);%Triangulation
triplot(tri,X,Y) %to interpret the case
x=linspace(0,11,300);y=repmat(0.5,1,300);
fC=tinterp([X' Y'],tri,f,x,y,'quadratic');
plot(diff(fC));%should be linear if the interpolant is exact for 2nd degree

Apparently from this example the interpolant is C0 (i.e. continuous but not differentiable), but it is a little bit misleading what is meant by "quadratic".

I tried to contact the author before posting, but apparently changed addres. Thank you anyway for his contribution.

Contact us at files@mathworks.com