作者smvenjoy (好好坏坏~~)
看板MATLAB
标题[问题] GUI转成.exe疑问
时间Mon May 12 22:44:14 2014
想要把GUI转成exe档案放在其他电脑上跑,
试用的方法如下:
1.把GUI.m及GUI.fig放在桌面所建立的资料夹"test"里
2.於command window打上mbuild.m,依序选择vc++6.0为compliler,
之後利用deploytool建立执行档。
GUI.m的程式只有pushbutton的callback,
程式码如下:
d=fdesign.bandpass(5M,5.1M,5.3M,5.4M,10,1,10,50M);
Hd=design(d,'butter');
但使用2010版的matlab转换为执行档时,出现以下的错误:
Warning:an error occurred while parsing class reportdlg.htmlreportdlg:
Undefined function or method 'findclass'for input arguments of type 'double'.
Waring:an error occurred while parsing class hdlcoderui.hdlcc:
Undefined function or method 'findclass'for input arguments of type 'double'.
Depfun error:'The specified super-class 'TreeNode' contains a parse error
or cannot be found on MATLAB's search path, possibly shadowed by
another file with the same name.'
??? Error using=>mcc
Error executing mcc,return status =1(0x1).
已经试过好多次,发现可能是因为程式码是在设计滤波器的关系,
才导致不能把GUI转成执行档,想请问该如何解决这个问题,谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 59.115.80.39
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/MATLAB/M.1399905856.A.8E3.html
※ 编辑: smvenjoy (42.64.127.234), 05/15/2014 20:41:34
※ 编辑: smvenjoy (42.64.127.234), 05/15/2014 20:42:15