フィルターのクリア

Interpolation command by MATLAB

2 ビュー (過去 30 日間)
Francesco
Francesco 2014 年 3 月 24 日
回答済み: Jos (10584) 2014 年 3 月 25 日
Can I Know what does
shading interp
command mean? I have to do a contour plot and I have this line of code to interpolate value but I don't Know if there is another option to interpolate the value? Can anyone give me a piece of advice? Thanks.
  1 件のコメント
Chandrasekhar
Chandrasekhar 2014 年 3 月 25 日
shading interp varies the color in each line segment and face by interpolating the colormap index or true color value across the line or face.

サインインしてコメントする。

回答 (1 件)

Jos (10584)
Jos (10584) 2014 年 3 月 25 日
The statement "shading interp" only causes the plot to be interpolated. To obtain the values you can use INTERP, INTERP1, INTERP2 etc. on your data.
% Example for 1D linear interpolation
x0 = 0:2:10
y0 = 2*(x0-5).^2 - 5*x0 + 3
x1 = 1:2:x0(end)
y1 = interp1(x0,y0,x1,'linear') % approximation
plot(x0,y0,'bo-', x1,y1,'rs')
help interp1

カテゴリ

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