polarplot and colormap in polar coordinate

조회 수: 29 (최근 30일)
Flo brd
Flo brd 2018년 11월 22일
댓글: Flo brd 2018년 11월 22일
Hello,
I am a bit struggling with my polar plot. I am playing with strikes and dips, and for each pair of those, an "intensity". I'd like to plot this surface/contourf/whatever function on my polarplot. I cannot find the handle to do so. My variable Dpp2 contains the intensity value for a given theta and rho/ strike and dip.
Thank you for your help. Here is an example:
xTmp = (0:4:360);
yTmp = (0:22.5:90);
[strike,dip]= meshgrid(deg2rad(xTmp),deg2rad(yTmp));
dip2 = rad2deg(dip);
strike2 =rad2deg(strike);
figure('name', 'COLD');
polarplot([0 360],[0 90]);
s = surf(strike2, dip2, DPp2);
polarplot(s);

답변 (1개)

jonas
jonas 2018년 11월 22일
I don't know if there's a built in function for this. For scattered data you could use
polarscatter(strike2(:), dip2(:), [],DPp2(:))
For polar surface plots, you could use some FEX function, like this
  댓글 수: 1
Flo brd
Flo brd 2018년 11월 22일
I actually tried that, but the result is quite blury unfortunately.

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

Community Treasure Hunt

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

Start Hunting!

Translated by