Functions | |
endif | if (nargin< 3) dim |
if (isempty(dim)) dim | |
if (isempty(x)) if(ndims(x) | |
else | sz (dim) |
if (n==0) if(prod(sz) | |
endif endif | elseif (n==1) retval |
endif endfunction | !assert (var(13), 0)%!assert(var([]) |
endif endfunction NaN | !assert (var(ones(0, 0, 0), 0, 1), zeros(1, 0, 0))%!assert(var(ones(0 |
endif endfunction NaN | zeros (0, 1, 0))%!assert(var(ones(0 |
endif endfunction NaN | zeros (0, 0))%!assert(var(ones(1 |
endif endfunction NaN | zeros (1, 1, 0))%!assert(var(ones(1 |
endif endfunction NaN | zeros (1, 2, 0, 0))%!assert(var(ones(1 |
endif endfunction NaN | zeros (1, 1, 0, 0))%!assert(var(ones(1 |
Variables | |
function | retval |
endif | sz = size (x) |
n = sz(dim) |
endif endfunction NaN !assert | ( | var(ones(0, 0, 0), 0, 1) | , | |
zeros(1, 0, 0) | ||||
) |
endif endfunction !assert | ( | var(13) | , | |
0 | ||||
) |
if | ( | n | = =0 |
) |
if | ( | isempty(x) | ) |
if | ( | isempty(dim) | ) |
endif if | ( | ) |
endif endfunction NaN zeros | ( | 1 | , | |
1 | , | |||
0 | , | |||
0 | ||||
) |
endif endfunction NaN zeros | ( | 1 | , | |
2 | , | |||
0 | , | |||
0 | ||||
) |
endif endfunction NaN zeros | ( | 1 | , | |
1 | , | |||
0 | ||||
) |
endif endfunction NaN zeros | ( | 0 | , | |
0 | ||||
) |
endif endfunction NaN zeros | ( | 0 | , | |
1 | , | |||
0 | ||||
) |
n = sz(dim) |
endif sz = size (x) |