How do I select specific points from the meshgrid function?
3 次查看(过去 30 天)
显示 更早的评论
I have created a meshgrid and would like to select specific coordinates (rho, theta) on it in order to see their value relating to my Gauss-Laguerre beam I am inspecting.

rseed=[0*max(w):max(w)/30:3*max(w)];
thetaseed=[0:360]*pi/180;
[r,theta]=meshgrid(rseed,thetaseed)
0 个评论
采纳的回答
Walter Roberson
2017-11-9
The value at probe_r, probe_theta is approximately
interp2(r, theta, GaussLaguerreValues, probe_r, probe_theta)
3 个评论
Walter Roberson
2017-11-10
This disagrees with the r, theta meshgrid that you show you were creating. r and theta for this purpose should be those meshgrid results, and E should be the function evaluated at those locations. Then probe_r and probe_theta should be the places you want to ask about the value of.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!