MATLAB: Fprintf command issue. tricky columns.

fprint

a=1:5;
b=90:94;
fprintf('Variables A : %.f | Variables B : %.f\n',a,b);
Consider the script above.
Variable a are the small values. I want to print all the variables on the LEFT COLUMN. Then variable b on the RIGHT column.
However with this sequence of fprintf the variable a results in an entirely different order.
1 2
3 4
5 90
91 92
93 94

Best Answer

The trick is [a;b], like this
fprintf('Variables A : %.f | Variables B : %.f\n',[a;b]);