Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Matlab Coder refuses to build package contents
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm currently taking my first steps with ML coder. It seems to successfully locate m files - unless they're inside packages. That is to say, Root\TestFunction.m builds nicely, but Root\+TestPackage\TestFunction.m fails with a nonsensical message:
The same error is shown if I type '+TestPackage\TestFunc.m' instead of 'TestPackage.TestFunc'.
I can't find any mention of this or any workaround. I'm using R2016A. Can anyone shed light on this?
Thanks
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 3월 13일
My understanding is that you cannot build parts of packages; you have to build something that calls the package.
댓글 수: 2
Walter Roberson
2016년 3월 14일
It might be documented somewhere. There have been several postings with regards to MATLAB Coder and classes, in which someone from Mathworks has replied that you cannot compile classes but need to call the class to get it compiled; I would think it likely that the same holds for packages.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!