Filter löschen
Filter löschen

how to get the polarplot from trisurf chart

2 Ansichten (letzte 30 Tage)
YEONWOO KIM
YEONWOO KIM am 11 Jun. 2020
Bearbeitet: KSSV am 11 Jun. 2020
From many types of theta, phi, power data, I want to draw trisurf and polarplot.
theta, phi datas include complicated value such as x.xx degree. so I used delaunay triangle to make 3d surf chart.
for example.
--------------------------------------------------------------------------------
theta = 0: 5: 180;
phi = 0: 5: 355;
[theta, phi] = meshgrid(theta,phi);
theta = reshape(theta,2664,1);
phi = reshape(phi,2664,1); % making basic theta,phi data.
tri = delaunay(theta, phi);
x= measuredPowerdata.*sind(theta).*cosd(phi);
y= measuredPowerdata.*sind(theta).*sind(phi);
z=measuredPowerdata.*cosd(theta);
figure(1)
trisurf(tri,x,y,z,measuredPowerdata);
view(3);
figure(2)
trisurf(tri,theta,phi,measuredPowerdata);
view(2);
--------------------------------------------------------------------------------
in this case, I can find theta=60 deg phi sweep data easily and draw polarplot, because theta has specific position such as theta == 60deg position.
But, after axis conversion, theta, phi value would be changed to weird value such as 107.2434deg .......
So, I tried
tri = delaunay(theta,phi); tr = triangulation(tri,theta,phi);
ph1 = 0:5:355; th1 = ones(1,72)*60;
P = [th1',ph1'];
ID = pointLocation(tr,P);
tr.Point(ID)??
fig1 = trisurf(tri,theta,phi,measuredPowerdata); [temp_theta,temp_rho] = find(fig1.Vertices(:,1) ==60);
polarplot(temp_theta,temp_rho);
But I failed.
How to get polarplot from weird theta, phi vector and powerdata??

Antworten (0)

Kategorien

Mehr zu Oceanography and Hydrology finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by