Using Matlab compiler to compile a matlab script with some python module imported
조회 수: 4 (최근 30일)
이전 댓글 표시
I am trying to compile a matlab script using Matlab Application compiler. However, in the matlab script, I use a python object adb_object from adb_lib.py (written by myself). I call the python object in the following way:
tmp = py.adb_lib.adb_object()
I've already tried to add the adb_lib.py as well as 'C:\Python27\python.exe' with mcc -a, but when I run the compiled exe file, it's still said:
Undefined Variable "py" or class "py.adb_lib.adb_object".
Any idea about this? Thanks!
댓글 수: 0
답변 (2개)
uathena
2017년 7월 25일
댓글 수: 1
Matthew Parrilla
2018년 7월 16일
Were you able to find out anything better than adding the files by hand?
Matthew Parrilla
2018년 7월 19일
Add the file to "Files installed for your end user" and it will work.
As of this writing this isn't very well documented, unfortunately.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Python Package Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!