single precision data for griddata()
이전 댓글 표시
Hi
when I use griddata(x,y,v, xq,yq), x,y,v,xq,yq are all single-precision data to save the memory. but there is an error saying " the input points must be a double array.
However when I checked the online manual for griddata(). it says x,y,z, can be single or double https://www.mathworks.com/help/matlab/ref/griddata.html
So I am wondering how I can use single-precision data in griddata()?
Thanks
채택된 답변
추가 답변 (2개)
Jyotish Robin
2018년 4월 18일
0 개 추천
scatteredInterpolant does not support single inputs. This is a documentation bug and will be corrected.
BISHNUPRIYA SAHOO
2019년 9월 20일
0 개 추천
I am also facing similar problem. Please help me to solve.
댓글 수: 1
Guillaume
2019년 9월 20일
similar problem to what?
As explained, single data is not supported with griddata. The simple fix is to convert your data to double.
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!