How can i color into circle element when i plot the curve?

回答 (2 件)

Image Analyst
Image Analyst 2019 年 4 月 2 日

1 投票

One way is to use the scatter() function and tell it to use 'filled' markers.
Another way is to use plot and use a gigantic marker size
plot(x, y, 'r.-', 'MarkerSize', 100);
A third way is to use the rectangle() function - see the help for an example.
KSSV
KSSV 2019 年 4 月 2 日

0 投票

th = linspace(0,2*pi) ;
x = cos(th) ;
y = sin(th) ;
patch(x,y,'r')

この質問は閉じられています。

製品

リリース

R2016a

タグ

質問済み:

2019 年 4 月 2 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by