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 个评论
OLo
2015-7-8
Same problem for me, too (Matlab 2015a). Any ideas?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!