I have value in matlab that has to given to python script. How should i pass the variable to it

 Akzeptierte Antwort

I have found it...This is what i wanted!
a= 30;
b= 120;
c= 90;
syscmd = sprintf('python D:\\ex.py %d %d %d', a, b, c);
system(syscmd)

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by