interp3 returns "Input grid is not a valid MESHGRID."

7 ビュー (過去 30 日間)
Pacharamon Sripoonpan
Pacharamon Sripoonpan 2019 年 11 月 18 日
回答済み: Kavya Vuriti 2020 年 1 月 17 日
I'm quite new for MATLAB. Anybody knows how to deal with the problem?
tq = interp3(x,y,z,tem,xq,yq,zq);
x,y and zq are in interp01.zip
tem and xq are in interp02.zip
yq and z are in interp03.zip
Every suggestions will be appreciated.

回答 (1 件)

Kavya Vuriti
Kavya Vuriti 2020 年 1 月 17 日
Hi,
I think this error may be due to two reasons:
  1. The input arguments x, y, z to the interp3 function must be either grid vectors or a full grid. You can try using ‘meshgrid’ function to create these arrays.
  2. The arguments xq, yq, zq must be either scattered points or grid vectors or scalars.
Refer to the following documentation page for additional information: https://www.mathworks.com/help/matlab/ref/interp3.html#bt2rbzl-4
Documentation link for ‘meshgrid’ function: https://www.mathworks.com/help/matlab/ref/meshgrid.html#bvbne9c

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by