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)

 채택된 답변

Star Strider
Star Strider 2021년 12월 7일

1 개 추천

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

원우 조
원우 조 2021년 12월 7일
thank you
you really helped me a lot!!!!!!!!
Star Strider
Star Strider 2021년 12월 7일
As always, my pleasure!
.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2021년 12월 7일

댓글:

2021년 12월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by