4.625

4.6 | 8 ratings Rate this file 52 downloads (last 30 days) File Size: 2.29 KB File ID: #1814

Akima Interpolation

by N. Shamsundar

 

10 Jun 2002 (Updated 20 Jan 2006)

Code covered by the BSD License  

Interpolate smooth curve through given points on a plane.

Download Now | Watch this File

File Information
Description

Implementation of Akima's univariate interpolation method (Journal of the ACM, Vol. 17, No. 4, October 1970, pages 589-602).

N. Shamsundar, University of Houston

MATLAB release MATLAB 6.0 (R12)
Other requirements Works with Matlab Versions 3 and upwards.
Zip File Content  
Other Files akima.m,
AkimaTst.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
07 Oct 2003 jesper dietz

jeo it works nice

23 Aug 2004 Catherine Martel

Hello,

I'm trying to get in touch with Jesper Dietz. The Jesper I'm looking for was crazy about sailing but sold his boat in order to go to Switzerland for a year, learn French, ski and have a fabulous time with new friends. Unfortunately, we've lost touch over the years and I'm now trying to reconnect. If you happen to be this Jesper or know him, please write back....

Cheers,

Catherine Martel

08 Sep 2004 Heyjin Kim

It works great for interpolation of ocean temperature and salinity profiles. Thanks!

02 Dec 2005 ericka solano

good

19 Jan 2006 Johannes Korsawe

Great work! Besides, the routine can be accelerated a lot by using the lines

[nerd,bin]=histc(xi,x);bin=min(bin,n-1);
bb=bin(1:length(xi))';wj=xi-x(bb);yi=((wj.*d(bb) +c(bb)).*wj+b(bb)).*wj+y(bb);

instead of the loop at the end. Speed-Up of 500 for 50.000 interpolated points.

Best,
Johannes Korsawe

14 Oct 2006 Zeke Cummings

With the Korsawe comment it's a 5 star function. More useful than Akima's orginal fortran algorithm

05 Nov 2006 mehdi ravanbakhsh

very good

10 Nov 2006 Jeff Barton

Excellent! Excellent! Excellent! I was looking for this exact capability, and the routine performed beautifully. Thank you!

25 Dec 2006 Kosit Tea

Very Excellent

16 Oct 2009 Chris

Works well, It easily be made compatible with the ppval function too.

Please login to add a comment or rating.
Updates
09 Sep 2004

One line corrected, to correctly handle special case where input data fall on straight line (9/2004)

20 Jan 2006

Improved speed by vectorizing FOR loop,
following suggestion from user (Johannes Korsawe)

Tag Activity for this File
Tag Applied By Date/Time
specialized N. Shamsundar 22 Oct 2008 06:45:13
plotting N. Shamsundar 22 Oct 2008 06:45:13
fit N. Shamsundar 22 Oct 2008 06:45:13
local N. Shamsundar 22 Oct 2008 06:45:13
spline N. Shamsundar 22 Oct 2008 06:45:13
interpolation N. Shamsundar 22 Oct 2008 06:45:13
akima N. Shamsundar 22 Oct 2008 06:45:13

Contact us at files@mathworks.com