www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/AssignElementsofReturnedDateVectorExample.m

    %% Assign Elements of Returned Date Vector  
% Convert text representing a date to a date vector and return the components of the
% date vector.   

%%  
[y, m, d, h, mn, s] = datevec('01.02.12','dd.mm.yy')