Ignoring NaNs in Data
显示 更早的评论
Hi,
I have a matrix of data I'm trying to fit a surface to, which contains a larger number of NaNs. When i use the 'sftool' tool, it says 'Ignoring NaNs in data' (which is exactly what I want) and works fine.
However, when I try to reproduce this, via the 'fit' function or the generated MATLAB code from sftool, it won't allow me as "XDATA, YDATA or WEIGHTS cannot have NaN values."
So my question is: how do I get the fit function to ingore the NaNs like it does automatically when using the graphical interface.
Many thanks for any help.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!