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) |
elseif | ( | ischar(opt2) | ) |
elseif | ( | nargin | = =3 |
) |
if | ( | isempty(t) | ) |
if | ( | nargin | = =2 |
) |
function m |
n = sz (dim) |
need_dim = 0 |
opt = "" |