I'm developing a simulator of a rocket and.
I have a dataset called data.C_l of dimensions 14x10x9. the firsr dimension sets the Angle of attack of the rocket, the second one the velocity of it and the last one its altitude
I need to get better datas for all those points that are not given by the matrix, interpulating them.
I tried to do that with interp3, but I do not understand the meaning of the letter V in the description of the code shown by the help assistant.
this is my code:
for i1 = 1:14 % angle of attack
for i2=1:10 % Mach number
for i3=1:9 % height reached
CLinstant(n)= interp3(data.C_l(i1,:,:), data.C_l(:,i2,:), data.C_l(:,:,i3), V, Angleofattack(n), VMach(n), y(n));
CDinstant(n)= interp3(data.C_d(i1,:,:), data.C_d(:,i2,:), data.C_d(:,:,i3), V, Angleofattack(n), VMach(n), y(n));
CMinstant(n)= interp3(data.C_m(i1,:,:), data.C_m(:,i2,:), data.C_m(:,:,i3), V, Angleofattack(n), VMach(n), y(n));
the variable n is set in that way to get consecutive values depending on time(i need to create a 'trajectory' of the values depending on the three variables of the flight.
thank you for your constant help!