Navigation

Operators and Keywords

Function List:

C++ API

moment.m File Reference


Functions

 if (nargin==2) opt
 elseif (nargin==3) if(ischar(opt1)) opt
 elseif (ischar(opt2)) opt
else error ("moment: expecting opt to be a string")
endif else print_usage ()
endif if (need_dim) t
 if (isempty(t)) dim

Variables

function m
endif need_dim = 0
else dim = opt1
 opt = ""
endif endif sz = size (x)
 n = sz (dim)

Function Documentation

elseif ( ischar(opt2)   ) 

elseif ( nargin  = =3  ) 

else error ( "moment: expecting opt to be a string  ) 

if ( isempty(t)   ) 

endif if ( need_dim   ) 

if ( nargin  = =2  ) 

endif else print_usage (  ) 


Variable Documentation

else dim = opt1

Initial value:

 moment (x, p, opt1, opt2)

  if ((nargin < 2) || (nargin > 4))
    print_usage ()

n = sz (dim)

need_dim = 0

opt = ""

endif endif sz = size (x)