I have : theta = 0:5:180; phi = -180:5:180; size(temp) is 37x73; 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.

 채택된 답변

Star Strider
Star Strider 2014년 4월 15일

0 개 추천

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

댓글 수: 2

Chris
Chris 2014년 4월 15일
This will take some time to plow through, but it does spell it out. Thank you.
Star Strider
Star Strider 2014년 4월 15일
My pleasure!
Here’s a tutorial by Doug Hull, Non-uniform spacing for surfaces in MATLAB that I watched a few times and found to be helpful. It can give you some insight and context to make the written documentation a bit more relevant. There may be more tutorials available that are even more relevant to what you want to do.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

질문:

2014년 4월 15일

댓글:

2014년 4월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by