MATLAB: How do you prepare meshgrids for interp2

theta-phi interp2 question - hover sphere

I have : theta = 0:5:180; phi = -180:5:180; size(temp) is 37×73; tp = 90;rp = 0; Vq = interp2(thetaprime,phiprime,temp,tp,rp); gives the error: Error using griddedInterpolant The grid vectors do not define a grid of points that match the given values.
Error in interp2>makegriddedinterp (line 211) F = griddedInterpolant(varargin{:});
Error in interp2 (line 126) F = makegriddedinterp({X, Y}, V, method,extrap);
Error in Add_Rings_Spots_To_Bullwink_Data_File (line 67) Vq = interp2(thetaprime,phiprime,temp,tp,rp); I've looked at the help and tried using meshgrid, but I am lost as to why this does not work. I would be greatful for any help. Thank you.

Best Answer

The documentation for Interpolating Gridded Data explains it better than I can.