MATLAB Answers

Executing Python script in MATLAB?

6 views (last 30 days)
Is there any way to run a full python script ? I am not looking to just call a function written in python.

Accepted Answer

Yongjian Feng
Yongjian Feng on 7 Aug 2021
What is the difference between a full python script and a function written in python? They are the same in my opinion.
Yongjian Feng
Yongjian Feng on 9 Aug 2021
  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 ( to set PYTHONPATH to add that location to it.
If you don't use virtualenv, this can be done easily.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!