MATLAB: Clock should return whole numbers.

clock

clock command results in:
clock
ans =
1.0e+003 *
2.0120 0.0080 0.0260 0.0160 0.0590 0.0028
but i want answer in the form
[2012 8 26 16 59 2.848]

Best Answer

See the command "format", such as
format long g