matlab在图片上rectangle详解
Rectangle 属性
矩形的外观和行为
矩形属性控制矩形对象的外观和行为。通过更改属性值,您可以修改矩形的特定方面。使用圆点表示法查询和设置属性。
h = rectangle;
w = h.LineWidth;
h.LineWidth = 3;
rectangle('Position',rectx,'Edgecolor','w','LineWidth',2);%画矩形,红shai,粗2
rectangle('Position',rectx,'Edgecolor','w','LineWidth',2,'LineStyle','--');
详见官网链接:
https://ww2.mathworks.cn/help/matlab/ref/matlab.graphics.primitive.rectangle-properties.html
1万+



被折叠的 条评论
为什么被折叠?



