How can I access the values in an interpolant surface?

1 view (last 30 days)
I am using sftool to fit an interpolant surface to a set of X, Y, Z data. Is it possible to create a matrix with the values of the interpolant surface at a certain density of points?
If X and Y vary from 0 to 1. I'd like to create a matrix which has all the grid points in the X and Y dimensions at a spacing of 0.1 between points (100 total points). In this matrix, the Z values would be the Z values of the interpolant surfaces at those grid points.

Answers (1)

Walter Roberson
Walter Roberson on 8 Jan 2016
[X,Y] = ndgrid(linspace(0,1,11));
then you can apply the interpolant over X, Y
Note: 121 points not 100. 0 to 1 by .1 needs 11 points.

Products

Community Treasure Hunt

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

Start Hunting!