Filter löschen
Filter löschen

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

18 Ansichten (letzte 30 Tage)
Pacharamon Sripoonpan
Pacharamon Sripoonpan am 18 Nov. 2019
Beantwortet: Kavya Vuriti am 17 Jan. 2020
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
tem and xq are in
yq and z are in
Every suggestions will be appreciated.

Antworten (1)

Kavya Vuriti
Kavya Vuriti am 17 Jan. 2020
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:
Documentation link for ‘meshgrid’ function:


Community Treasure Hunt

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

Start Hunting!

Translated by