How to run Matlab from python to run an m.file in a specific folder?
Mostra commenti meno recenti
Hi All
there is a tutorial on how to run matlab from python , but it does not say how to run an .m file from a specific folder, I mean that after starting matlab engine, how to tell matlab from python to start from a specific folder ?
2 Commenti
Bob Thompson
il 24 Giu 2019
I do not know how to run matlab through python, but I do know that in Matlab you set which folder you want to run in by selecting the 'Current Folder', and you can change that by using the cd command in the command window.
Not sure if that is going to help at all.
Niko L. Ciminelli
il 15 Lug 2022
I am having the same issue but I know we can do this from matlab.egine API
Risposte (1)
Hitesh
il 4 Feb 2025
0 voti
Hi Farzad,
Kindly refer to the following MATLAB documentation for starting MATLAB from python by importing "matlab.engine".
Categorie
Scopri di più su Call MATLAB from Python in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!