run python script with mcc compiled matlab

33 次查看(过去 30 天)
ido
ido 2024-11-19,8:58
评论: Aravind 2024-11-20,6:10
Hi,
I am trying to compile a matlab script that contains a python function (used with pyrunfile).
This code is running with no issues with a regular matlab run, but failed to run after compiling with mcc.
I added the python function path to the mcc, using -a, with no help.
The error that I got is
'MATLAB:Pyrunfile:FileNotFound'.
I printed the main function path using "ls". I see all matlab file names and folder names in this print, except the folder that contains the python function.
Any ideas?
  1 个评论
Aravind
Aravind 2024-11-20,6:10
Hi @ido,
Could you please share your MATLAB script and python file along with the directory structure and the exact mcc command you are running? This will help in identifying and debugging the issue.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by