Re: Fitting data with Splines
- Subject: [mg3225] Re: Fitting data with Splines
- From: fostad at marin.unit.no (Anders Fostad)
- Date: 19 Feb 1996 11:58:09 -0600
- Approved: usenet@wri.com
- Distribution: local
- Newsgroups: wri.mathgroup
- Organization: Norwegian University of Science and Technology, Trondheim, Norway
- Sender: daemon at wri.com
How about something like this (I don't have the Mathematica handbook in front of me, so I can't tell the exact syntax, but it may help you on the way): getysplinevalue[spline_List,x_] = Module[{index,y}, index=Position[spline,x]; y=spline[x]; y ] Well, at least the intrinsic function Position seems to be the key. Anders Fostad.