フィルターのクリア

filling between two polar plots

3 ビュー (過去 30 日間)
fima v
fima v 2017 年 2 月 16 日
コメント済み: KSSV 2017 年 2 月 16 日
i have read the fill command and i know that i need to convert to cartesian coordinated in order to use it but when i do that ,the image contour gets distorted . is there a way to do the fill command in polar coordinates? Thanks

回答 (1 件)

KSSV
KSSV 2017 年 2 月 16 日
angle = linspace(0,2*pi) ;
radius = 2*ones(1,100) ;
h = polar(angle,radius);
patch( get(h,'XData'), get(h,'YData'), 'g')
  3 件のコメント
KSSV
KSSV 2017 年 2 月 16 日
Attach the data...
KSSV
KSSV 2017 年 2 月 16 日
Check this example may be useful:
clc; clear all ;
angle = linspace(0,2*pi) ;
a1 = randsample(angle,10) ;
a2 = randsample(angle,2) ;
r1 = rand*ones(size(a1)) ;
r2 = rand*ones(size(a2)) ;
a12 = [a1 a2] ;
r12 = [r1 r2] ;
h = polar(a12,r12);
patch( get(h,'XData'), get(h,'YData'), 'g')

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by