Borrar filtros
Borrar filtros

how to silence display of variables?

1 visualización (últimos 30 días)
John
John el 19 de Feb. de 2014
Comentada: John el 19 de Feb. de 2014
Hello,
I have the following iteration but the problem is, it automatically displays array values in command window:
X=[-10:1:10]; Y=[]; for i=1:length(X),Y(i)=0*X(i)+0,end
How to silence the display of the variables?

Respuesta aceptada

Jason R
Jason R el 19 de Feb. de 2014
Use ; to suppress output. So, Y(i)=0*X(i)+0; instead of Y(i)=0*X(i)+0,
  1 comentario
John
John el 19 de Feb. de 2014
Thank you very much. Now it works as I wanted it to.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by