How to use Display Function ?

11 Ansichten (letzte 30 Tage)
Christine Ak
Christine Ak am 17 Okt. 2013
Kommentiert: Christine Ak am 17 Okt. 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]

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 17 Okt. 2013
Bearbeitet: Azzi Abdelmalek am 17 Okt. 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 Kommentar
Christine Ak
Christine Ak am 17 Okt. 2013
Yes Sir !! thats it .... thank U So much :D

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by