Navigation

Operators and Keywords

Function List:

C++ API

datevec.m File Reference


Functions

 if (isempty(std_formats)) std_formats
endif if (nargin< 1||nargin > 3) print_usage()
endif switch (nargin) case 1 f
case if (ischar(varargin{1})) f
endswitch if (isempty(f)) f
endif if (isempty(p)) p
endif if (ischar(date)) date
endif if (iscell(date)) nd
 if (f==-1) for k
 if (found) break

Variables

 function [y, m, d, h, mi, s]
 nfmt = 0
 p = []
else f = []
 y = m = d = h = mi = s = zeros (nd, 1)
for l

Function Documentation

if ( found   ) 

if ( = =-1  ) 

endif if ( iscell(date  ) 

endif if ( ischar(date  ) 

endif if ( isempty(p)   ) 

endswitch if ( isempty(f)   ) 

case if ( ischar(varargin{1})   ) 

endif if ( nargin< 1||nargin 3  ) 

if ( isempty(std_formats)   ) 

endif switch ( nargin   ) 


Variable Documentation

endif case f = []

function[y, m, d, h, mi, s]

Initial value:

 datevec (date, varargin)

  persistent std_formats nfmt

for l

Initial value:

 1:nfmt
          [f, rY, ry, fy, fm, fd, fh, fmi, fs] = __date_vfmt2sfmt__ (std_formats{l})

nfmt = 0

p = []

y = m = d = h = mi = s = zeros (nd, 1)