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.

 Akzeptierte Antwort

Matt Fig
Matt Fig am 14 Mär. 2011

4 Stimmen

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 Kommentare

Sean de Wolski
Sean de Wolski am 14 Mär. 2011
or fprintf!
Tesi
Tesi am 14 Mär. 2011
Yeah, the old trick of the semicolon. Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 14 Mär. 2011

3 Stimmen

evalc() the script and throw away the output.

2 Kommentare

Tesi
Tesi am 14 Mär. 2011
Thanks. That's a good trick too.
Aurelien Queffurust
Aurelien Queffurust am 5 Feb. 2013
cool exactly what I was looking for!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 14 Mär. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by