Hey ,,, Can any body tell me how to print the values x,y,z by using display function but withOUT spaces between them ??
x=1;
y=2;
z=3;
disp[x y z]

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 17 de Oct. de 2013
Editada: Azzi Abdelmalek el 17 de Oct. de 2013

0 votos

If there is no spaces between them, that means you want to display 123
x=1;
y=2;
z=3;
a=[x y z];
display(sprintf('%d',a))

1 comentario

Christine Ak
Christine Ak el 17 de Oct. de 2013
Yes Sir !! thats it .... thank U So much :D

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Preguntada:

el 17 de Oct. de 2013

Comentada:

el 17 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by