function [xq,yq,vq] = griddata(varargin)
%GRIDDATA Interpolates scattered data - generally to produce gridded data
% Vq = griddata(X,Y,V,Xq,Yq) fits a surface of the form V = F(X,Y) to the
% scattered data in (X, Y, V). The coordinates of the data points are
% defined by the vectors (X,Y) and V defines the corresponding values.
% griddata interpolates the surface F at the query points (Xq,Yq) and
% returns the values in Vq. The query points (Xq, Yq) generally represent
% a grid obtained from NDGRID or MESHGRID, hence the name GRIDDATA.
%
% Vq = griddata(X,Y,Z,V,Xq,Yq,Zq) fits a hyper-surface of the form
% V = F(X,Y,Z) to the scattered data in (X, Y, Z, V). The coordinates of