Simple code to draw circles

9 ビュー (過去 30 日間)
Hatim Cader
Hatim Cader 2015 年 7 月 19 日
回答済み: Image Analyst 2015 年 7 月 19 日
I need to draw a circle of a set diameter. Is there a code where all I have to do is edit the diameter? I also need to know how to draw a circle inside another circle (where I can also control diameter). I will need to save the images as bitmap files. The end file should simply be a circle (no grid or graph).
Thanks

回答 (1 件)

Image Analyst
Image Analyst 2015 年 7 月 19 日
Yes, several code snippets are available in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F You should be able to find what you want there - probably the first example is what you want.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by