フィルターのクリア

How to plot a disc with a given center c and radius r

54 ビュー (過去 30 日間)
Mourchid
Mourchid 2016 年 1 月 6 日
回答済み: Image Analyst 2016 年 1 月 7 日
Hi friends,
how can i draw a disc which is centered at (x0,y0), which has radius r and which is filled by color c, the circle should be colored in black.

採用された回答

jgg
jgg 2016 年 1 月 6 日
編集済み: jgg 2016 年 1 月 6 日
You can use this answer:
But instead of using h = plot(xunit, yunit); use h=fill(xunit,yunit,'k') instead.
The colour c is black 'k' above, but you can change it with a colour spec like this.
  1 件のコメント
Mourchid
Mourchid 2016 年 1 月 6 日
Thank a lot for your respense jgg .

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 1 月 7 日
Circles, discs, ellipses, arcs, etc. are all covered by the FAQ. See code samples in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by