single precision data for griddata()
Mostrar comentarios más antiguos
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
1 comentario
roudan
el 16 de Abr. de 2018
Respuesta aceptada
Más respuestas (2)
Jyotish Robin
el 18 de Abr. de 2018
0 votos
scatteredInterpolant does not support single inputs. This is a documentation bug and will be corrected.
BISHNUPRIYA SAHOO
el 20 de Sept. de 2019
0 votos
I am also facing similar problem. Please help me to solve.
1 comentario
Guillaume
el 20 de Sept. de 2019
similar problem to what?
As explained, single data is not supported with griddata. The simple fix is to convert your data to double.
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!