How to use interpolation function

4 ビュー (過去 30 日間)
Rashdeep Singh
Rashdeep Singh 2018 年 8 月 5 日
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 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by