Functions | |
endif | if (nargin< 3) dim |
if (isempty(dim)) dim | |
if (n==1) retval | |
elseif (numel(a) > 0) retval | |
else | error ("std: x must not be empty") |
!assert (std(x)==[0, 0]&&abs(std(y)-sqrt(2))< sqrt(eps)) | |
!assert (std(x, 0, 3), zeros(10, 2))%!assert(std(ones(3 | |
zeros (3, 1, 2))%!error std() | |
!error | std (1, 2, 3, 4) |
Variables | |
function | retval |
endif | n = size (a, dim) |
endif endfunction!test | !x = ones (10, 2) |
!y = [1, 3] |
!assert | ( | std(x, 0, 3) | , | |
zeros(10, 2) | ||||
) |
!assert | ( | std(x) | = =[0 |
) |
elseif | ( | numel(a) | , | |
0 | ||||
) |
if | ( | n | = =1 |
) |
if | ( | isempty(dim) | ) |
endif if | ( | ) |
!error std | ( | 1 | , | |
2 | , | |||
3 | , | |||
4 | ||||
) |
zeros | ( | 3 | , | |
1 | , | |||
2 | ||||
) |
endif endfunction !test !x = ones (10, 2) |
!y = [1, 3] |