How to use interpolation function
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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

0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!