can't use py.module inside a matlab code compiled for python

5 ビュー (過去 30 日間)
Omar Salah
Omar Salah 2020 年 6 月 29 日
回答済み: TED MOSBY 2025 年 5 月 6 日
My matlab code uses 3 different python modules but I first compile it to a python library then use it from a python interpreter. my problem is that it gives me errors like:
Unable to resolve name
for lines that normally work in the uncompiled code. This happens when I try to use my custom python modules or even for matlab supported python functions like:
py.sys.path
I tried a workaround to load the modules in python then pass them as arguments to my compiled matlab code but this is unsupported and mypython interpreter gives me:
TypeError: unsupported Python data type: module
Any ideas on how to fix this ?

回答 (1 件)

TED MOSBY
TED MOSBY 2025 年 5 月 6 日

カテゴリ

Help Center および File ExchangePython Package Integration についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by