Hello everyone, I'm having issues finding a function or thinking a way of implementing my question. I have four two-dimensional tables that each represent actual lift & drag data at different air speeds. They are in the format
Tn = [a1 L1 D1; a2 L2 D2; a3 L3 D3;...;an Ln Dn]
The amount of rows can differ between each table.
I also have two three-dimensional arrays, A & T.
A is actual a values.
T is actual air speeds.
size(A)ans = 20 100 100size(T)ans = 20 100 100
I would like to take the each element value of T and find what 2D Tables it lies between. I want to then take the value of the element from A at the same location to interpolate to find values of L & D on both tables. Then I would like to take the element value from T to interpolate between both L & D values.
In the end, I hope to have a three dimensional array for L and another for D that are the same size of A & T.
Thank you all!
Extra Credit: I'm hoping to not use for loops and/or creating functions. For loops seems to slow down my code dramatically & I would like to not have to keep track of separate function m-files.
Best Answer