Can a MATLAB script run silently?

18 vues (au cours des 30 derniers jours)
Tesi
Tesi le 14 Mar 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.

Réponse acceptée

Matt Fig
Matt Fig le 14 Mar 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 commentaires
Sean de Wolski
Sean de Wolski le 14 Mar 2011
or fprintf!
Tesi
Tesi le 14 Mar 2011
Yeah, the old trick of the semicolon. Thanks!

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 14 Mar 2011
evalc() the script and throw away the output.
  2 commentaires
Tesi
Tesi le 14 Mar 2011
Thanks. That's a good trick too.
Aurelien Queffurust
Aurelien Queffurust le 5 Fév 2013
cool exactly what I was looking for!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by