how do i fill rectangle with color?
Ältere Kommentare anzeigen
rectangle('Position',[0 0 2 4],'Curvature',0.2)
how do i color this rectangle into red? somebody please help me
Antworten (1)
This is how —
figure
rectangle('Position',[0 0 2 4],'Curvature',0.2, 'FaceColor','r')
.
2 Kommentare
원우 조
am 7 Dez. 2021
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.
.
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



