polarplot에서 직선을 긋는방법

5 ビュー (過去 30 日間)
Jaehyun Lee
Jaehyun Lee 2017 年 5 月 2 日
回答済み: Angelo Yeo 2023 年 12 月 27 日
첨부된 사진처럼 부채꼴모양을 극좌표에 플랏하는 방법을 알고싶습니다.

回答 (1 件)

Angelo Yeo
Angelo Yeo 2023 年 12 月 27 日
첨부된 사진이 없어 정확한 요구사항은 모르겠으나 아래와 같은 접근도 가능할 것 같습니다.
n = 100;
theta = [0, linspace(0, pi/4, n-1)];
rho = [0, 100*ones(1, n-1)];
a = polar(theta,rho);
myColor = lines(1);
patch(get(a,'XData'), get(a,'YData'), myColor, 'FaceAlpha',0.2)

カテゴリ

Help Center および File Exchange극좌표 플롯 についてさらに検索

Community Treasure Hunt

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

Start Hunting!