how to compile a MATLAB +folder-type package

Dear Experts,
I have some functions organised in MATLAB packages and subpackages created through a hierarchy of folders beginning with names beginning with a + sign in the following way:
/root/+pack/+subpack/myfun.m
In MATLAB I can then call myfun.m as pack.subpack.myfun() after adding /root to my path.
I wish to create stand-alone executables from my code, which also include these packages and subpackages. For this, I add the +pack folder under "Shared Resources or Helper Functions" in the deploy tool. However, after compiling the code successfully execution fails with a message that it cannot access previously available /root/+pack/+subpack/myfun.m (I remove the addpath statement for the compiled version since). Is there a way to make this work without modifying the package hierarchy described above?
Thanks, Barak

1 comentario

OLo
OLo el 8 de Jul. de 2015
Same problem for me, too (Matlab 2015a). Any ideas?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.

Preguntada:

el 29 de Nov. de 2012

Comentada:

OLo
el 8 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by