matlab mdl 保存图片,simulink 仿真图如何转化成图片格式
擅长:LS-DYNA
首先编写截图子函数并命名为 jietu_mdl。
function jietu_mdl(bpath)
if nargin < 1
files=dir('*.mdl');
else
[pathstr,name] = fileparts(bpath);
if exist(bpath,'dir')
name = [name '\*'];
end
ext = '.mdl';
files=dir(fullfile(pathstr,[name ext]));
end
if ~isempty(files)
whandle = actxserver('word.application');
whandle.Visible = 1;
Add(whandle.Documents);
sel=whandle.Selection;
set(sel.ParagraphFormat,'Alignment','wdAlignParagraphLeft');
set(sel.PageSetup,'LeftMargin',28.35,'RightMargin',28.35,'BottomMargin',28.35*1.43);
for index=1:size(files,1)
title=files(index).name;
eval(title(1:end-4));
print('-dmeta',['-s', title(1:end-4)]);
bdclose;
close('all');
TypeText(sel,title);
set(sel.ParagraphFormat,'KeepWithNext',-1)
TypeParagraph(sel);
Paste(sel);
set(sel.ParagraphFormat,'KeepWithNext',0)
TypeParagraph(sel);
end
release(whandle);
end
return
然后在 MATLAB 主界面运行调用截图函数 jietu_mdl('shiyan') 可得图。
matlab mdl 保存图片,simulink 仿真图如何转化成图片格式相关推荐
- pdf转化成图片格式
引言 知识要及时总结,放到自己的仓库. 概述 公司项目一个小任务,需要将pdf格式的文件转化为png图片格式.一开始的想法就是java一定有jar包实现了这个功能,只要查到这个jar包即可.经过度娘的 ...
- python html转图片失真_html dom 转化成图片踩坑记(canvas toDataURL)
需求 在开发过程中遇到这么一个需求,h5页面需要将一个html dom转化成图片,便于用户保存. 面向百度搜索第三方得 html2canvas 和 dom-to-image 两者在写这篇笔记之前在gi ...
- excel分列格式问题:转化成文本格式问题
excel分列格式问题:转化成文本格式问题 怎么遇到的问题? 如何解决问题? 怎么遇到的问题? 因为有科学计数法的形式所以想要转换成文本格式方便导入数据库,就必须用到如图所示的分列. 其余操作一切正常 ...
- iOS 文字转化成图片
//文字转化成图片 -(UIImage *)imageFromText:(NSArray*)arrContent withFont:(CGFloat)fontSize withTextColor:(U ...
- python 脚本将视频转化成图片 | python scripts to convert video to pictures
python 脚本将视频转化成图片 | python scripts to convert video to pictures python video_to_images.py 运行时,修改输入.输 ...
- php网址图片怎么转based4,Ionic4 Base64 转化成图片插件-Base64 转化成图片Base64 To Gallery - Ionic Native...
This plugin allows you to save base64 data as a png image into the device Ionic Base64 转化成图片Base64 T ...
- 将整型数字转化成大写格式
将整型数字转化成大写格式 将整型数字转化成大写格式 我们日常报表的打印,单据打印,借据.收据打印等等操作都需要用到将金额装换成大写,防止交易双方通过修改单据数字,因而我们的信息管理系统就把账单的金额转 ...
- base64字符串转化成图片
/*** base64字符串转化成图片** @param base64* @return*/ public static File base64ToFile(String base64) throws ...
- new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解
new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解 //获得年月日时分秒 //传入日期// ...
最新文章
- Python,C++中点云 .las转.pcd
- ORACLE 数据泵导入导出数据
- 实心和空心哪个抗弯能力强_空心楼板技术优势及施工工艺
- 报名 | 大咖云集,清华方圆系列之大数据分析与可视化报告会
- webrtc rtsp播放
- Tensorflow【实战Google深度学习框架】—Logistic regression逻辑回归模型实例讲解
- linux非交互式脚本,Linux expect非交互式执行脚本
- 《Android编程权威指南》PhotoGallery应用梳理
- 第8章4节《MonkeyRunner源码剖析》MonkeyRunner启动运行过程-启动 8
- matplotlib—plt.pie绘制饼状图及参数详解
- 《数据结构和算法》之中缀表达式、后缀表达式转换
- 2022-渗透测试-口令破解-几款暴力破解和字典生成的工具
- 微信小程序前端编程踩过的坑实战记录
- Windows10新版本设置卓越性能
- MySQL数据库实验(六):创建学生信息管理系统
- 虚拟机跑服务器网速慢,VMware虚拟机上网速度慢怎么办-解决VMware打开网页缓慢的方法 - 河东软件园...
- IPSec IKEV2
- java五子棋技术路线_五子棋游戏程序设计(VB)
- Vmware虚拟机文件介绍、克隆及文件名称更改方法
- python 拆分pdf指定页,Python按页拆分pdf