MATLAB: How to use Display Function

display functiondisplaying without spacesprinting values

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]

Best Answer

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))