how do i fill rectangle with color?
古いコメントを表示
rectangle('Position',[0 0 2 4],'Curvature',0.2)
how do i color this rectangle into red? somebody please help me
回答 (1 件)
This is how —
figure
rectangle('Position',[0 0 2 4],'Curvature',0.2, 'FaceColor','r')
.
2 件のコメント
원우 조
2021 年 12 月 7 日
figure
rectangle('Position',[0 0 2 4],'Curvature',0.2, 'FaceColor','r') % Original
axis('equal')
figure
rectangle('Position',[0 0 2 4],'Curvature',0.2, 'FaceColor','r') % Original
rectangle('Position',[3 2 2 1],'Curvature',0.2, 'FaceColor','g') % Additional
axis('equal')
These work.
.
カテゴリ
ヘルプ センター および File Exchange で Grid Lines, Tick Values, and Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



