Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interpolation of Data

Status
Not open for further replies.

mallows

Technical User
May 14, 2007
1
GB
Hi,

I have a text file which looks (briefly) like the following:

x y
0 2391
2.1 2478
4.3 2871
6.2 3019

The actual file has the first column going up to about 55000 in the same increment.

Does anyone know a fortran program (or any program - say Matlab) that can take this input file and interpolate it to give an output file which has readings for y at, say, every x=10?

Grateful for any help you can offer!

Kind regards, mallows
 
HHmmmm,

you do not expect us to do your homework from PC classes, don't you ?

If not:

google 'interpolation fortran' and you will receive 616.000 links covering all kinds of interpolation routines, not only linear.

Norbert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top