Hello there!
I am trying to figure out how to interpolate a 2D data array using VBA with the data being kept within of a macro.
Below, the T (y) and C (x) is chosen by the user (two cells with the information) and the A_rho is the combined rho variables.
VBA Data (dataset can be changed if needed, this is just how I set it up)
I am able to do this with Matlab, but not with a VBA function.
Matlab code with an internal interp2 file looks something like this
Note: at sign after interpolated= is removed due to forum thinking it is a link.
Example:
A1 = T2 = 20
A2 = C2 = 42
A3 = output = 1.4492
I can figure the interpolation out if the data is in the excel already, but when the data is inside the code, I am very unsure. Any suggestions would be great.
Cheers!
Bookmarks