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

10 visualizaciones (últimos 30 días)
Tim
Tim el 10 de Feb. de 2012
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?

Respuestas (1)

Dr. Seis
Dr. Seis el 10 de Feb. de 2012
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 comentario
Image Analyst
Image Analyst el 10 de Feb. de 2012
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by