# How to interpolate between sets of data

I'm probably using the wrong terminology, making it difficult to find a starting point.

I have a set of motor data that looks like this: I can easily create a trend line for a given flow rate (GPM). For example, the 4 GPM trend line is:

y = 6E-12x4 - 3E-08x3 + 8E-06x2 - 0.0503x + 1161.8


If I input 2300 psi for x I get the correct interpolation of 937.86 RPM.

Question

What I need is for the equation to take into account all flow rates dynamically.

i.e. The user will want to know what the RPM was for 2300 psi at 4.5 GPM.

So I need to interpolate between interpolations... I'm sure there is a standard term for this ;)

Answer doesn't have to be in excel but that's what I'm using to prove out the algorithm.

Also, I'm trying to automate this because I have multiple tables of data for different sizes of motors and different values such as speed and torque and want to allow the user to pick different motors to update their calculations automatically without pulling out the book.

• It is a 2D interpolation because your speed is a function of pressure and GPM, which are given at isolated points of a plane (think pressure on the X axis and GPM on the y-axis) with speed on the Z-axis. – user_of_math Oct 8 '14 at 18:28
• Do you have access to MATLAB? It has a whole set of 1D,2D and 3D interpolation functions with support for linear, cubic and spline interpolation. – user_of_math Oct 8 '14 at 18:29
• @user_of_math I'll read up on 2D interpolations. That was probably my missing term. I don't have MATLAB but we just got licenses to MATHCAD. Thanks – Portland Runner Oct 8 '14 at 18:30