Can I save the interpolant from scatteredInterpolant or griddedInterpolant
Show older comments
I have a database as a 2D matrix which I interpolate using scatteredInterpolant. Then I query the interpolant over a set of points. I would like to ask if it is possible to save the interpolant generated by scatteredInterpolant or griddedInterpolant for future use, so I can load it in the workspace and avoid to recalculate it every time I want to do a different query. I tried to save it as mat file but when I load it in the workspace I get a warning and I can't query the interpolant:
F = scatteredInterpolant(X,Y,Z);
save('F','F')
clear F
load F
Variable 'F' originally saved as a scatteredInterpolant cannot be instantiated as an object and will be read in as a uint32.
Thank you in advance
Isabella
3 Comments
Matt J
on 21 Jan 2014
That's very strange. I have no such difficulty in R2013b, either with scatteredInterpolant or griddedInterpolant. What MATLAB version are you using?
Matt J
on 21 Jan 2014
Was your attempt to reload F in the same MATLAB session/version in which you created it?
Isabella
on 21 Jan 2014
Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!