How to use interpolation function

4 visualizaciones (últimos 30 días)
Rashdeep Singh
Rashdeep Singh el 5 de Ag. de 2018
hi MATLAB community, i want to interpolate for power between three variables i.e displacement,trim and speed. I am trying to use interp3 but it keeps giving me error that atleast 2 sample points are needed.I'm not good in coding so if you can help it would be much appreciated. This is just an example to get an understanding of the interpolation function.And how can i plot the 3D figure of my result.
if true
% disp(:,1) = 25000;
speed(:,1)=[10;12;14;15.5];
trim(1,:) = [-4,-2,0,2,4];
pow = [1595,1517,1452;2876,2742,2589;4909,4751,4478;7401,7148,6775];
x=rand;
y=rand;
z=rand;
Vq = interp3(disp,speed,trim,pow,x,y,z);
end
attach

Respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by