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 日

0 投票

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