Time = [68535763846, 6538764367, 536743643]
out=['[' num2str(Time) ']']
%or
Time = [68535763846, 6538764367, 536743643]
out=['[' sprintf(' %d, ', Time(1:end-1) ) num2str(Time(end)) ']']
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!