How to call Python Script in Matlab
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Akshay Dhyani
il 18 Nov 2020
Risposto: Rifshu Hussain Shaik
il 15 Feb 2022
Hi,
I want to call python script into Matlab for further processing. I watched couple of threads mentioned at https://stackoverflow.com/questions/1707780/call-python-function-from-matlab but always gets an error when do this in command prompt
>> py.ReadIFSLog
Unable to resolve the name py.ReadIFSLog
I have MATLAB 2020a. What am I doing wrong?
0 Commenti
Risposta accettata
Kunal Kumar
il 19 Nov 2020
I understand that you are trying to call your own python script from MATLAB command window.
The syntax that you are using is for calling python built-in modules from MATLAB, not scripts. Please have a look at the answer posted for a similar question.
2 Commenti
Più risposte (1)
Rifshu Hussain Shaik
il 15 Feb 2022
try this in matlab to open python script
system('python filename.py');
0 Commenti
Vedere anche
Categorie
Scopri di più su Call Python from MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!