Plotting several Polarplots below each other

조회 수: 2 (최근 30일)
NightStalker
NightStalker 2021년 6월 17일
댓글: NightStalker 2021년 6월 20일
Plotted an elipse using polarlpot with two vectors AspectX and RangeX as input using the code below and receiving the following plot:
nFig = 1;
color = 'b';
h = figure(nFig);
polarplot( AspectX,RangeX,color);hold on;
% using symmetrie
polarplot(-AspectX,RangeX,'c');
%% changing axis title
% aspect-angle RH-> [0-180°], LH-> [-180-0°]
ax = gca;
tt = ax.ThetaTick;
for i=1:length(tt)
if tt(i) > 180
ttL{i} = num2str(tt(i)-360);
else
ttL{i} = num2str(tt(i));
end
end
set (ax,'ThetaTickLabel',ttL);
My goal is now to create a Z-Dimension and creating several of those ellipses above each other, by giving every ellipse a Z-Value.
I already used this 3dPolarplot script but was not succesfull:
https://de.mathworks.com/matlabcentral/fileexchange/13200-3d-polar-plot?s_tid=prof_contriblnk
Any help is much appreciated!
  댓글 수: 1
NightStalker
NightStalker 2021년 6월 20일
While experimentating with polarplot3d if figured out that this function is not suitable for me and was able to solve my problem using fill3.

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

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 6월 17일
Do you have any mathematical formulation depicting the relatioship between the ellipses and Z axis? If you do then that can be used to compute the 3D data for Z. For that first create a meshgrid of data for theta and R and then compute the values of Z using meshgrid data. Finally, using the fcn file polarplot3d( ) ==> polarplot3d(Z), 3D polar plot will be build.
  댓글 수: 1
NightStalker
NightStalker 2021년 6월 18일
Thank you Sulaymon for answering,
Every ellipse should have one constant Z-value, therefore there is no mathematical relationship in terms of
Z = f(thetra,radius). All I have is one vector with theta-angles, one vector with the corresponding radiuses and one constant Z-value.
The problem is, that I dont understand how to use those values as correct input for the polarplot3d-function...

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

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by