hello guys. I how do i color the outer rectangle into red? this is the function.
figure
rectangle('Position',[0 0 2 4],'Curvature',0.2)
axis equal
rectangle ('Position',[0.2 3 0.7 0.9],'Curvature',0.2)

 Akzeptierte Antwort

Star Strider
Star Strider am 7 Dez. 2021

1 Stimme

figure
rectangle('Position',[0 0 2 4],'Curvature',0.2, 'FaceColor','r')
axis equal
rectangle ('Position',[0.2 3 0.7 0.9],'Curvature',0.2, 'FaceColor','w')
Both rectange objects must have the FaceColor values stated.
.

2 Kommentare

원우 조
원우 조 am 7 Dez. 2021
thank you
you really helped me a lot!!!!!!!!
Star Strider
Star Strider am 7 Dez. 2021
As always, my pleasure!
.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Labels and Annotations 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!

Translated by