Filter löschen
Filter löschen

How to run exe with argumants using matlab

4 Ansichten (letzte 30 Tage)
David
David am 22 Okt. 2014
Bearbeitet: Mohammad Abouali am 22 Okt. 2014
Hello. I have a matlab-based exe that I need to call using matlab. I understand system(myexe.exe) will run it. However, I need the exact syntax for calling the exe with parameters such as: parName1 str1 parName2 val2
Would it be system('myexe.exe' 'parName1' 'str1' 'parName2' 'val2') for example....i.e. comas, quotation marks, oxford commas spaces etc etc...would integer values, such as val2 need ' or not etc? If anyone would let me know the exact syntax that would be great!
Thank you

Akzeptierte Antwort

Mohammad Abouali
Mohammad Abouali am 22 Okt. 2014
Bearbeitet: Mohammad Abouali am 22 Okt. 2014
system('myexe.exe parName1 str1 parName2 val2')
so pretty much the same command that you run it in command prompt or shell, just put a system around it.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by