Print Messages into Windows Command Window
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rahul J Hirur
el 3 de Jun. de 2022
Comentada: Rahul J Hirur
el 4 de Jun. de 2022
Hello all,
I am running a Matlab script in Windows Command Window. I want to print messages into the same windows Command Window where I initiated the Matlab script to run. I am trying to use 'system(echo Hello)' command but it prints the MATLAB Command Prompt in the background but Not in windows Command window.
Is there a way to achieve this way of printing in CMD window?
Has anyone encounter this obstacle before or has anyone tried this approach before?
0 comentarios
Respuesta aceptada
Walter Roberson
el 3 de Jun. de 2022
Use System.Diagnostics.Process to start CMD, and connect up standard input. When appropriate send CMD an ECHO command.
1 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!