MATLAB Engine for python
Afficher commentaires plus anciens
I have successfully installed matlab.engine module in python.
But, i want to open a matlab file which is not in the same folder as that of python code. How to add path of such remote file and open it using matlab engine in python?
Réponses (2)
Brian Hart
le 22 Jan 2019
0 votes
Try using sys.addpath in Python.
Manu Manuel
le 6 Mar 2020
Modifié(e) : Manu Manuel
le 6 Mar 2020
0 votes
path = # specify your path
eng.addpath (path, nargout= 0 )
1 commentaire
Athul Prakash
le 30 Oct 2020
You may combine genpath with addpath to add the folder with all its subfolders too.
Sometimes, just eng.cd can be a good alternative.
Catégories
En savoir plus sur Call MATLAB from Python dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!