Help with patch
显示 更早的评论
Hello, i need your help to understand how patch works. I have made a 2D plot in matlab and i would like to add some patches to it. I use the following commands
xpatch=[340.04 340.07;340.04 340.07]; % create x axis patch area
ypatch=[0 1600;0 1600]; % create y axis patch area
patch(xpatch,ypatch,'r');
my problem is that even if the patch object has been created in the plot brower of the figure window, it isn't visible in my figure. I would appreciate any help
Thank you
采纳的回答
更多回答(1 个)
Kostas
2012-2-29
0 个投票
1 个评论
Jonathan Sullivan
2012-2-29
It works for me. Make sure you use the hold on command before trying to pot anything else on top.
类别
在 帮助中心 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!