码迷,mamicode.com
首页 > 其他好文 > 详细

matlab代码完成copy figure功能

时间:2018-11-14 16:39:06      阅读:811      评论:0      收藏:0      [点我收藏+]

标签:board   word   代码实现   编写   实现   dao   正式   整理   ida   

整理自百度知道:https://zhidao.baidu.com/question/482507465.html

在写报告的过程中经常碰到需要大量复制粘贴matlab生成的图片到word中,在不太正式的报告里一般用工具栏中的copy figure完成复制过程,一张图一张图地粘会非常麻烦,若要通过编写代码实现copy figure的功能,可使用以下函数:

print -dmeta

print -dbitmap

uimenufcn(gcf, ‘EditCopyFigure‘)

hgexport(gcf,‘-clipboard‘)

由于要用到gcf,需要画一张粘一张,当图片比较多时可以配合pause函数使用,如下:

figure(1)

hgexport(gcf,‘-clipboard‘)

pause

figure(2)

hgexport(gcf,‘-clipboard‘)

pause

figure(3)

hgexport(gcf,‘-clipboard‘)

pause

figure(4)

hgexport(gcf,‘-clipboard‘)

matlab代码完成copy figure功能

标签:board   word   代码实现   编写   实现   dao   正式   整理   ida   

原文地址:https://www.cnblogs.com/Dontstop/p/9958305.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!