Can a MATLAB script run silently?

19 visualizaciones (últimos 30 días)
Tesi
Tesi el 14 de Mzo. de 2011
I want to run a script in MATLAB without the script displaying a lot of stuff. I'm looking for the equivalent of the instruction "@echo off" that can be used to run batch files in Windows.

Respuesta aceptada

Matt Fig
Matt Fig el 14 de Mzo. de 2011
Why would the script be displaying anything? Go through the script and make sure there are no calls to DISP, and every line ends in a semi-colon. Then the script shouldn't be dumping anything to the command line.
  2 comentarios
Sean de Wolski
Sean de Wolski el 14 de Mzo. de 2011
or fprintf!
Tesi
Tesi el 14 de Mzo. de 2011
Yeah, the old trick of the semicolon. Thanks!

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 14 de Mzo. de 2011
evalc() the script and throw away the output.
  2 comentarios
Tesi
Tesi el 14 de Mzo. de 2011
Thanks. That's a good trick too.
Aurelien Queffurust
Aurelien Queffurust el 5 de Feb. de 2013
cool exactly what I was looking for!

Iniciar sesión para comentar.

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by