Executing Python script in MATLAB?

조회 수: 1 (최근 30일)
Abhishek Sharma
Abhishek Sharma 2021년 8월 7일
편집: Abhishek Sharma 2021년 8월 9일
Is there any way to run a full python script ? I am not looking to just call a function written in python.

채택된 답변

Yongjian Feng
Yongjian Feng 2021년 8월 7일
What is the difference between a full python script and a function written in python? They are the same in my opinion.
  댓글 수: 8
Abhishek Sharma
Abhishek Sharma 2021년 8월 9일
편집: Abhishek Sharma 2021년 8월 9일
I think it's not able to import the modules.
Yongjian Feng
Yongjian Feng 2021년 8월 9일
  1. Is pandas installed properly in python? Can you use python to import it without problems?
  2. Figure out where from it is imported, then inside matlab, call setenv (https://www.mathworks.com/help/matlab/ref/setenv.html) to set PYTHONPATH to add that location to it.
If you don't use virtualenv, this can be done easily.

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

추가 답변 (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