how to run two python script in matlab

3 visualizzazioni (ultimi 30 giorni)
fengyu wu
fengyu wu il 24 Nov 2015
Commentato: Kirby Fears il 24 Nov 2015
Hello, I was trying to run my two python script called array_illumination.py and process.py which are for image processing.
These code is runnable in python and they import some python library called scripy and numpy. I have two questions... I am not sure how to resolve the importing issues in Matlab. (How to import numpy scripy equivalent in Matlab to get my .py code to run.)
I am a new to Matlab and not sure how to made these two .py file run in Matlab. I move the file around, and I can't seem to get it right. I search the web for it, and it said it involve something about perl.m And I need to create a python.m file..... I am not sure how to do it...
I really appreciate you help! And have a wonderful thanks giving!
Sincerely, Fengyu
  1 Commento
Kirby Fears
Kirby Fears il 24 Nov 2015
Python scripts can be run from the windows command line if you've set up your environment properly. E.g. "python myscript.py" in windows command prompt.
From inside Matlab, you can submit the same command to the windows command prompt using system().
I'm not sure if Matlab a direct out-of-the-box way to communicate with Python.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by