how to get the polarplot from trisurf chart
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Delaunay Triangulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!