how to get the polarplot from trisurf chart
1 view (last 30 days)
Show older comments
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??
0 Comments
Answers (0)
See Also
Categories
Find more on Delaunay Triangulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!