matlab built in function missing from stand alone application
3 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to build a standalone application that filters a signal. the GUI runs fine from matlab but when I use the deploytool the generated .exe returns the error "undefined function or method filter" I tried to add the path to the filter function but when I run which filter,it returns this path
which filter
built-in (C:\Program Files\MATLAB\R2011a\toolbox\matlab\datafun\@single\filter) % single method
and the path doesn't exist Does anybody know how to fix this problem? Thanks
0 件のコメント
回答 (1 件)
Dinghuan Zhu
2014 年 7 月 21 日
The function “which” does not display the source file locations for MATLAB built-in functions. Your result of the “which” command for “filter” looks normal.
I think the error “undefined function or method filter” you got is caused by missing MATLAB Compiler Runtime (MCR) or the incorrect version of MCR on your target computer where you want to run the filter GUI executable generated by DEPLOYTOOL.
The MATLAB Compiler Runtime is a standalone set of shared libraries that enables the execution of MATLAB files on computers without an installed version of MATLAB. You need to have MCR installed on your target computer in order to run your standalone filter GUI application. Otherwise, the standalone executable on your target computer is not able to locate the required MATLAB built-in functions such as “filter” you are using. Error messages like “undefined function or method…” may be issued.
Also, make sure that the version of MCR you are installing on the target computer matches the version of MATLAB that the application was created in.
You may refer to the following documentation on how to deploy standalone applications on computers without MATLAB using MCR (for MATLAB R2011a):
2 件のコメント
Dinghuan Zhu
2014 年 7 月 22 日
The correct MCR version for MATLAB R2011a is 7.15. You have to downgrade the installed MCR in order for your standalone application to work with MATLAB R2011a.
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!