Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Loading dynamically function: err_while_looking_up_function
Replies: 4   Last Post: Jul 17, 2013 4:00 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 17,944
Registered: 12/7/04
Re: Loading dynamically function: err_while_looking_up_function
Posted: Jul 17, 2013 10:09 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



"kees de Kapper" <kees_de_kapper@hotmail.com> wrote in message
news:ks66ek$knl$1@newscl01ah.mathworks.com...
> Thank you Nasser for your reply.
>
> Thirst, I became sad by your answer, but the links you mentioned gave me a
> way to overcome the problem. And I became happy again. I changed all the
> "eval" statements to "feval" which supposed to be a proper alternative.
>
> Unfortunately I stuck into a "previously accessible file "MyFun_Kees" is
> now inaccessible"-error. Then, I found out that this had to be with the
> use of "addpath" in a deployed/compiled version. However, removing the
> "addpath" gives an "Undefined function or variable" problem.
>
> This brings me in a vicious circle (Please, help me out?!).
> How can I tell Matlab to look into a folder for files/functions to
> execute/call?


All the functions that you want to execute in your compiled application must
be present and "visible" (either by being called directly from another
function [EVAL/FEVAL count as being called INdirectly], by being included
explicitly in the MCC call using the -a flag, or by being mentioned
explicitly using the %#function pragma in a function that is "visible") when
the application is compiled.

http://www.mathworks.com/help/compiler/mcc-command-arguments-listed-alphabetically.html

http://www.mathworks.com/help/compiler/function.html

You cannot add functions to your application at runtime.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.