Cannot invoke Matlab runtime from python?

I am trying to run my matlab file from python IDE which is Pycharm.
I have tried to start the Matlab runtime but it is not invoking. It gives an error such as 'AttributeError: module 'sentimentAnalysis' has no attribute 'initialize''.
How can I solve this? Any ideas?

댓글 수: 3

Nilanshu Ranjan
Nilanshu Ranjan 2022년 10월 31일
This does not seem to be MATLAB related error. It seems to be a Python related error that occurs due to invalid package imports. Can you check your code for the same?
Yes the code was same. However, now the error has been resolved, this happened after restarting my pc. I think it could be due to the package was not valid yet as you have suggested.
Antoine
Antoine 2023년 1월 30일
I have the same problem. However even when I restart my pc I still have the same error message. Do you have any ideas where it come from ?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Python Package Integration에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2022년 10월 28일

댓글:

2023년 1월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by