griddata Parameter must be a 'double matrix'

I am running version R2011b. I am trying to re-grid data from an irregular lat/lon grid to a regular lat/lon grid. My input arrays X, Y, Z are dimensioned (349,277). My target grid is dimensioned (96,60). When griddata is called I get an error in DelaunayTri as "Parameter must be a 'double matrix'". I have used griddata in the past with no problems and I can not figure out what this error message means. Any suggestions?

답변 (2개)

Sean de Wolski
Sean de Wolski 2014년 9월 5일

0 개 추천

What is the class of the variables?
class(X)
If it's not double, convert it to double using double()

댓글 수: 1

enrique acuña
enrique acuña 2019년 12월 17일
Thanks, I had the same problem and I managed to solve it with your answer. Cheers

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

Mike
Mike 2014년 9월 5일

0 개 추천

Thanks Sean, that was the problem. Simple now that I understand the error message!

카테고리

도움말 센터File Exchange에서 Performance and Memory에 대해 자세히 알아보기

질문:

2014년 9월 5일

댓글:

2019년 12월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by