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
OLo 2015년 7월 8일
Same problem for me, too (Matlab 2015a). Any ideas?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

2012년 11월 29일

댓글:

OLo
2015년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by