How to use Display Function ?

7 visualizzazioni (ultimi 30 giorni)
Christine Ak
Christine Ak il 17 Ott 2013
Commentato: Christine Ak il 17 Ott 2013
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]

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 17 Ott 2013
Modificato: Azzi Abdelmalek il 17 Ott 2013
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 Commento
Christine Ak
Christine Ak il 17 Ott 2013
Yes Sir !! thats it .... thank U So much :D

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by