Nearest Neighbor Interpolated data
24 views (last 30 days)
Show older comments
If you are give a matrix,zi, generated using griddata where:
x=5 unknown values;
y=5 unknown values;
xq=linspace(0,25,26);
yq=linspace(0,25,26);
z=[1:5];
zi=gridata(x,y,z,xq,yq,'nearest');
How do you approximate/calculate the original 5 (x,y) points?
0 Comments
Answers (1)
Image Analyst
on 6 Sep 2012
There is no unique solution. There could be millions of x and y that could give the shape. Just look at the example in the help. x and y (the blue dots on their colored wire grid surface) could be anywhere along any of the wires, and you'd still have the same surface. You can't tell where they came from just by having the surface.
See Also
Categories
Find more on Surface and Mesh 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!