how do i color this?

4 views (last 30 days)
원우 조
원우 조 on 7 Dec 2021
Commented: Star Strider on 7 Dec 2021
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)

Accepted Answer

Star Strider
Star Strider on 7 Dec 2021
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 Comments
원우 조
원우 조 on 7 Dec 2021
thank you
you really helped me a lot!!!!!!!!
Star Strider
Star Strider on 7 Dec 2021
As always, my pleasure!
.

Sign in to comment.

More Answers (0)

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!