フィルターのクリア

MATLAB app won't run when called from Python called from batch file

8 ビュー (過去 30 日間)
Natan Getschel
Natan Getschel 2022 年 9 月 19 日
回答済み: Piyush 2023 年 2 月 23 日
I'm trying to run an app I made in MATLAB without needing to have MATLAB open. Unfortunately I don't have access to the app compiler toolbox, so what I'm doing is calling the app from Python and running the python script using a batch file. This worked for me in the past when just calling scripts. The python code I'm using is simple, just this
import matlab.engine
eng = matlab.engine.start_matlab()
eng.analyze_registration_UI()
Here analyze_registration_UI is a .mlapp, but it doesn't work even when exported to a .m file. With other .mlapp files, however, this same code and batch file run fine. Not sure what the difference between the two apps might be. Thanks!

回答 (1 件)

Piyush
Piyush 2023 年 2 月 23 日
Try to follow the steps given in the below link -

カテゴリ

Help Center および File ExchangeCall MATLAB from Python についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by