How to edit the script to run cmd?
Mostra commenti meno recenti
Hello
I want to run program cmd in Matlab and i want to build a iterative process. So I want to run the script in cmd via Matlab, but after typing
system('cmd')
the script seems to be useless and I can only deal with the data in the command window. I want to write commands in the script and run it conveniently ?
Thanks in advance
1 Commento
Jan
il 15 Lug 2013
system starts a command shell already, so starting another instance of CMD from within seems to be useless. Which script do you want to run?
Risposte (1)
Are you running with output arguments to catch the result of the script
[status, result] = system('cmd')
In any case 'cmd' on Windows simply invokes a DOS window, so it's not clear what output you are expecting.
1 Commento
chunqi
il 15 Lug 2013
Categorie
Scopri di più su Manage Products 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!