matlab built in function missing from stand alone application

3 visualizaciones (últimos 30 días)
Anis
Anis el 20 de Jul. de 2014
Comentada: Dinghuan Zhu el 22 de Jul. de 2014
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

Respuestas (1)

Dinghuan Zhu
Dinghuan Zhu el 21 de Jul. de 2014
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 comentarios
Anis
Anis el 22 de Jul. de 2014
Thanks for you answer, I have matlab r2011a and mcr V7.17 installed. could it be some issue with the 64bit version?
Dinghuan Zhu
Dinghuan Zhu el 22 de Jul. de 2014
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by