What would be a best interpolation method to get test data for a specific temperature?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have 4 columns of test data (Temp, X, Y, Z). I want to create slices of data (X,Y,Z) for temperatures not collected (0, 40, 100). Each temperature would create a 3d dataset that I would want to graph as a surface. My data does not have the exact temperatures so how can I interpolate the data to get the data I am after?
My data is for each temp (-20, 60, 120, 160), X varried from 0 to 1 and Y varried from 1000 to 10000 and Z was measured. I would like to know how I can create the X, Y and Z data for different temperatures with X and Y varrying the same way.
Also for each temperature, X and Y do not varry the same. They are not gridded, One test run X might be 0.05, 0.34, 0.68 etc... whereas the next time it might be 0.02, 0.28, 0.57 etc...
0 comentarios
Respuestas (1)
Star Strider
el 5 de Mayo de 2021
TestData = sortrows(randi([0 200], 15, 4),1)
InterpTemps = [0 40 100];
Interp_234 = interp1(TestData(:,1), TestData(:,2:4), InterpTemps, 'linear','extrap')
Result = [InterpTemps(:) Interp_234]
.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!