Matlab生成exe执行文件
- 一、通过C++编译器
- 二、通过Application Complier模块
- 1、安装runtime模块
- 2、Application Complier 运行
- 2.1 执行m文件,切换到输出文件夹
- 2.2 打开APP中Application Complier模块
- 2.3 添加要生成exe的m文件
- 2.4 修改路径,离线安装包
- 2.5 按crtl+s 保存转化工程(存储)
- 2.6 点击package 生成exe
- 3、转化文件夹介绍
创新互联建站服务项目包括定襄网站建设、
定襄网站制作、定襄网页制作以及定襄网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,
定襄网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到定襄省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!一、通过C++编译器
不推荐,在没有安装matlab的电脑上运行exe文件,还需要联网下载MATLAB runtime模块
参考 https://blog.csdn.net/weixin_42285898/article/details/118022206
二、通过Application Complier模块
参考 https://blog.csdn.net/cyj972628089/article/details/125343594
参考 https://blog.csdn.net/m0_70509260/article/details/124564051

1、安装runtime模块
a. 在MATLAB命令行中输入mcrinstaller
,如果出现如下,说明需要安装。否则直接看第2步

b. 在命令行中输入compiler.runtime.download
,立马按crtl+c,获取黄框标注的官网配套模块地址。(按部就班下载缓慢,手动输入网址下载更快)

c. 下载完成后,在matlab中设置MATLAB complier编译器的路径。

导入压缩包所在位置,如下图所示

2、Application Complier 运行
2.1 执行m文件,切换到输出文件夹
2.2 打开APP中Application Complier模块

2.3 添加要生成exe的m文件

2.4 修改路径,离线安装包

2.5 按crtl+s 保存转化工程(存储)

2.6 点击package 生成exe

3、转化文件夹介绍
在没有MATLAB的电脑上运行,先执行for_redistribution内的安装包,再执行for_redistribution_files_only内程序即可

你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
当前题目:Matlab生成exe执行文件-创新互联
文章路径:
http://cxhlcq.com/article/ceieho.html