From: Jan Simon on
Dear Joseph!


> tic;A = strrep(SampleVec, ' 0:00:00' , '');toc;
> tic;B = cellstr(datestr(SampleVec,'mm/dd/yyyy'));toc;

Not fast also, but cuts all times:
C = cellfun(@(c) c(1:findstr(c, ' ')), SampelVec, 'Uniformoutput', false);

Jan
First  |  Prev  | 
Pages: 1 2
Prev: bitwise operation in simulink.
Next: affinity matrix