Alternative command to Shell Escape [!] function
Mostrar comentarios más antiguos
Is there alternative to Shell Escape [!] function? The problem is that I cannot asign custom name programatically for execution of external program from Editor, e.g.
todays_data = ['Dec23'];
execute_program = ['myProgram_' todays_data];
!execute_program
I have tried system function, i.e.
system(execute_program)
but no luck. Thank you for any idea.
6 comentarios
madhan ravi
el 23 de Dic. de 2018
~
grega
el 23 de Dic. de 2018
madhan ravi
el 23 de Dic. de 2018
what does it do ? what's it's purpose ? so that a better solution can be given
Guillaume
el 23 de Dic. de 2018
Why doesn't system work?
Does the solution have to work on any OS or can it be OS specific?
grega
el 23 de Dic. de 2018
Respuestas (1)
Rik
el 23 de Dic. de 2018
1 voto
On Windows you can use the start keyword to start a command in a separate thread.
Sometimes this doesn't play nice with Matlab, so you might need to write 'start YourFunction.exe' to a bat file and run that with the system command.
Then you can use exit to quit Matlab itself.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!