how to compile a MATLAB +folder-type package

2 views (last 30 days)
Barak
Barak on 29 Nov 2012
Commented: OLo on 8 Jul 2015
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

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!