draw

版本 1.0.0.0 (5.3 KB) 作者: Chad Greene
Easily draw shapes on a figure via mouse.
614.0 次下载
更新时间 2015/9/22

查看许可证

This function lets you easily draw shapes on a current figure. The image above was created by

draw 'arrow'
draw('ellipse','facecolor','r','color','b','linewidth',3)
draw('rectangle','linewidth',1.5,'color',[0.08 0.69 0.10])
draw('doublearrow','linewidth',3,'headstyle','rose','color',[0.98 0.45 0.24])

After calling draw, you may:

* Click and drag to draw shapes,

* press 'a', 'e', 'l', 'r', or 'd' on your keyboard to change the shape to arrow, ellipse, line, rectangle, or doublearrow,

* press backspace to delete previous shape,

* press escape to delete all shapes and quit drawing mode, or

* press enter to keep shapes as they appear in the figure.

引用格式

Chad Greene (2024). draw (https://www.mathworks.com/matlabcentral/fileexchange/53139-draw), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Elementary Polygons 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0