interp2:invalidMeshgrid problems

조회 수: 1 (최근 30일)
Rodrigo
Rodrigo 2022년 8월 29일
답변: Divyam 2025년 4월 30일
I'm trying to use VMT extention and matlab is showing me a message about a invalid mesh grid
the error name is interp2:InvalidMeshgrid
Anyone knows what is this?
  댓글 수: 1
dpb
dpb 2022년 8월 29일
Not without
  1. all the code and error message in context to see what generated the message and the entire message
  2. data to reproduce the problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

Divyam
Divyam 2025년 4월 30일
The 'interp2' function expects the first two input matrices/grid vectors to define a valid 2D grid. The error you are facing implies that the matrices or grid vectors defined in your code do not create a valid 2D grid. Here are a few troubleshooting steps that you can try out to resolve your error:
  • Check that the inputs are 2D matrices of the same size
  • Check the data passed by the VMT extension and verify that is passes a valid grid
  • If your data is scattered, use 'griddata' instead of 'interp2'
For more information regarding the 'griddata' function, refer to the following documentation: https://www.mathworks.com/help/matlab/ref/griddata.html

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by