How to create a rectangular patch with a smaller rectangular section removed?

Hi,
How can I patch (using patch command) a rectangle with a smaller rectangular section removed? The smaller rectangle can be on the side or the center, so I don't know what the remaining patch shape will look like. Any ideas?

 채택된 답변

Image Analyst
Image Analyst 2015년 6월 3일
Can't you simply call patch twice, the second time with smaller size and the background color? Or did you try that already? I assume you looked up patch() in the help. So what have you tried so far that did not work? Is this homework?

추가 답변 (0개)

카테고리

태그

질문:

2015년 6월 3일

답변:

2015년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by