Executing Python script in MATLAB?

조회 수: 2(최근 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
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개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by