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!