Error with interp3 - please help
Show older comments
I am trying to use interp3 on scatter data, and I'm getting the error:
Error using griddedInterpolant
The grid vectors are not strictly monotonic increasing.
Command:
[x,y,z] = meshgrid(0:0.25:1,0:0.25:1,0:0.25:2);
I3D=interp3(scatter(:,1),scatter(:,2),scatter(:,3),scatter(:,4),x,y,z,'linear');
Any idea what the issue is? I've done the same thing with 2D data using 'griddata', not sure why MATLAB is angry.
Thanks in advance!
Accepted Answer
More Answers (1)
J M
on 8 Dec 2015
Edited: Walter Roberson
on 8 Dec 2015
Categories
Find more on Scatter Plots 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!