Interpolation of data on Excel for analysis of Load Displacement

Click For Summary

Discussion Overview

The discussion revolves around the interpolation of data in Excel for analyzing load displacement, focusing on how to programmatically obtain y values at specific intervals along the x-axis from a set of x and y values. Participants explore methods and tools to facilitate this process, particularly for large datasets.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant seeks advice on writing a program to interpolate y values at specified x intervals from large datasets.
  • Another participant questions the format of the data and suggests that the output should be an Excel spreadsheet with interpolated y values next to preset x values.
  • A different participant proposes performing a least squares regression to derive a function for y(x) and then using this function to find interpolated values.
  • One participant describes their specific challenge of needing y values at regular x intervals, highlighting the impracticality of manual interpolation due to precision requirements.
  • Another participant mentions an Excel add-in called XNUMBERS that includes built-in interpolation functions, providing links to resources for further assistance.

Areas of Agreement / Disagreement

Participants express various approaches to the problem, with no consensus on a single method or solution. Multiple viewpoints on how to achieve the desired interpolation remain present.

Contextual Notes

Some participants note the need for specific programming skills or tools, such as Excel VBA, while others suggest mathematical methods like least squares regression. The discussion does not resolve the best approach to take.

Who May Find This Useful

Individuals interested in data analysis, particularly those working with large datasets in Excel, may find this discussion relevant.

leon313
Messages
2
Reaction score
0
I don't need any help for the engineering maths I'll be doing after but if I anyone could advise me on how to write a program that would take a set of x and y values and then give me back the y values at certain intervals on the x-axis I would be very grateful. I've got colossal amounts of data that needs sorting before I can use it.

Thanks!
 
Engineering news on Phys.org
leon313 said:
I don't need any help for the engineering maths I'll be doing after but if I anyone could advise me on how to write a program that would take a set of x and y values and then give me back the y values at certain intervals on the x-axis I would be very grateful. I've got colossal amounts of data that needs sorting before I can use it.

Thanks!

Welcome to the PF. I'm not sure I understand your question. What format is the data in? Is it already in Excel in two columns? Or is it in a clear text file in CSV or some other format?

And you want the output of your program to be what? An Excel spreadsheet with an interpolated y data column next to some pre-set x data (regular interval) column?
 
leon313 said:
I don't need any help for the engineering maths I'll be doing after but if I anyone could advise me on how to write a program that would take a set of x and y values and then give me back the y values at certain intervals on the x-axis I would be very grateful. I've got colossal amounts of data that needs sorting before I can use it.

Thanks!

If you have the math worked out then most of the work will be in making the program interface. Is that what you need help with? If so, it sounds more like a programming issue. If so, then what language are you familiar with?

CS
 
Just do a least squares regression on the data set, and get a function for y(x). Then plug in values of x to the function you get and there's your interpolated outputs!
 
What I have is a few different sets of data, all with two columns in. My problem is that to take an average of all the different data sets, I need x values at set intervals, whereas at the minute I may have a y value at x = 0.9 and another at x = 1.1 and need the value at 1.0. This isn't a problem obviously to interpolate by hand but the values are to a few decimal places and to do the whole lot by hand would take quite a while. I'm pretty clueless with how to use Excel VBA to help me with it. So the output needs to be An Excel spreadsheet with an interpolated y data column next to some pre-set x data (regular interval) column as berkeman suggested.

Thanks again.
 
If you are using Windows XP, the link below has an Excel add-in called XNUMBERS that contains built in interpolation functions.

http://digilander.libero.it/foxes/SoftwareDownload.htm

Look for the item at the top of the list called "XNUMBERS 5.6 - Multi Precision Floating Point Computing and Numerical Methods for EXCEL"

There is also an excellent tutorial:

http://digilander.libero.it/foxes/Documents.htm

Look for the item called “Numeric calculus in Excel” Xnumbers Tutorial vol.1,Oct. 2007 by Foxes Team.
 

Similar threads

Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K