[問題] GUI轉成.exe疑問

看板MATLAB作者 (好好壞壞~~)時間10年前 (2014/05/12 22:44), 10年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
想要把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://www.ptt.cc/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
文章代碼(AID): #1JSDv0ZZ (MATLAB)