Can a MATLAB script run silently?

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.

 Risposta accettata

Matt Fig
Matt Fig il 14 Mar 2011

4 voti

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 Commenti

or fprintf!
Tesi
Tesi il 14 Mar 2011
Yeah, the old trick of the semicolon. Thanks!

Accedi per commentare.

Più risposte (1)

Walter Roberson
Walter Roberson il 14 Mar 2011

3 voti

evalc() the script and throw away the output.

2 Commenti

Tesi
Tesi il 14 Mar 2011
Thanks. That's a good trick too.
cool exactly what I was looking for!

Accedi per commentare.

Categorie

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by