Can a MATLAB script run silently?

조회 수: 18 (최근 30일)
Tesi
Tesi 2011년 3월 14일
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.

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 3월 14일
evalc() the script and throw away the output.
  댓글 수: 2
Tesi
Tesi 2011년 3월 14일
Thanks. That's a good trick too.
Aurelien Queffurust
Aurelien Queffurust 2013년 2월 5일
cool exactly what I was looking for!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by