PDA

查看完整版本 : [求助]关于matlab文件转成exe文件


m186179
2008-03-23, 09:11
请问如何将.m的文件转成exe的文件,在网上搜索是方法没有一个成功的,总是出错。
mcc -m DigitallmPr.m
??? Unable to locate DigitallmPr.m as a function on the MATLAB path

Depfun error: 'Unable to locate DigitallmPr.m as a function on the MATLAB path'
??? Error executing mcc, return status = 1

求一个确实可行的方法!

tolabfans
2008-03-23, 19:04
请问如何将.m的文件转成exe的文件,在网上搜索是方法没有一个成功的,总是出错。
mcc -m DigitallmPr.m
??? Unable to locate DigitallmPr.m as a function on the MATLAB path

Depfun error:...

原来有过研究,好像不是所有M文件都转换。有一定限制。

nsq029
2008-03-24, 12:58
错误已经给你提示了,你将你的当前matlab路径改到你这个m文件所在的路径下,再进行编译!
好不?

mathjiang
2008-03-24, 21:59
原来有过研究,好像不是所有M文件都转换。有一定限制。

当然,m函数文件就不能编译为exe文件。