Cubic Spline Interpolation Function

637 views
Skip to first unread message

skyavonee

unread,
Nov 2, 2011, 9:02:00 PM11/2/11
to freemat
I was surprised to see that FreeMat lacks a cubic spline interpolation
function, since linear interpolation is often insufficient. So I made
the proper changes to allow Matlab's spline function to work in
FreeMat. Enjoy.

http://www.fast-files.com/getfile.aspx?file=50406

Unzip it into your FreeMat/Toolbox directory, and you can test it
using the following commands:

x = 0:10;
y = sin(x);
xx = 0:.1:10;
yy = spline(x,y,xx);
plot(x,y,'o',xx,yy,'.');
Message has been deleted
Message has been deleted

Timothy Cyders

unread,
Nov 2, 2011, 9:47:25 PM11/2/11
to fre...@googlegroups.com
Mike,

How large is the file you're trying to send? You could send it as an attachment, or append the text into your email.

TJ

On Wed, Nov 2, 2011 at 9:18 PM, Michael Schiavoni <skya...@gmail.com> wrote:
Now I'm just making a fool of myself. Can you recommend a file hosting site that's both free and functional? Thanks  -Mike


On Wed, Nov 2, 2011 at 6:08 PM, Michael Schiavoni <skya...@gmail.com> wrote:
Whoops, sorry the file hoster I originally used is so lame... try this one instead:

--
You received this message because you are subscribed to the Google Groups "freemat" group.
To post to this group, send email to fre...@googlegroups.com.
To unsubscribe from this group, send email to freemat+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/freemat?hl=en.

skyavonee

unread,
Sep 14, 2014, 4:45:24 PM9/14/14
to fre...@googlegroups.com
Every once in a while I receive a request for these files. The current download link is here: https://dl.dropboxusercontent.com/u/73168911/spline.zip
Reply all
Reply to author
Forward
0 new messages