How can the ans be surpressed so that only the fprintf will show?

I have recently typed out a few scripts in which I wanted the results to be displayed with the fprintf function. I end up with getting the fprintf output and the ans output from my script. Is there any way to make it so only the fprintf result is displayed?

답변 (1개)

Dr. Seis
Dr. Seis 2012년 2월 10일

0 개 추천

Not putting a semi-colon ( ; ) at the end of a line within your code or at the end of a function call from the command line is usually the culprit.

댓글 수: 1

Also, just to be sure, make sure you have "echo off" - it probably already is off, but just in case you turned it on, turn it off anyway.

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

카테고리

도움말 센터File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기

태그

질문:

Tim
2012년 2월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by