Functions | |
elseif (nargin==2) vn | |
else | print_usage () |
endif | if (isscalar(vn)) vv |
endif | if (isvector(x)&&isvector(y)) c |
while (i< size(c, 2)) clen | |
c (1, ind) | |
c (2, ind) | |
endwhile endif | if (nargout > 0) cout |
!assert (c_actual, c_expected, eps)%!assert(lev_actual | |
Variables | |
function [cout, lev] | |
z = varargin{1} | |
x = size (z) 1:nc | |
y = 1:nr | |
else | vv = unique (sort (vn)) |
else | ii = 1:size (z,2) |
jj = 1:size (z,1) | |
c = __contourc__ (ii, jj, z, vv) | |
i = 1 | |
ind = i + [1 : clen] | |
ci = c(1, ind) | |
cj = c(2,ind) | |
lev = vv | |
endif endfunction!test | !x = 0:2 |
!y = x | |
!z = x' * y | |
!c_expected = contourc (x, y, z, 2:3) [2, 1, 1, 2, 2, 3, 1.5, 2 | |
!lev_expected = [2 3] | |
lev_expected |
!assert | ( | c_actual | , | |
c_expected | , | |||
eps | ||||
) |
c | ( | 2 | , | |
ind | ||||
) |
c | ( | 1 | , | |
ind | ||||
) |
elseif | ( | nargin | = =2 |
) |
endif if | ( | isvector(x)&&isvector(y) | ) |
else print_usage | ( | ) |
while | ( | ) |
!c_expected = contourc (x, y, z, 2:3) [2, 1, 1, 2, 2, 3, 1.5, 2 |
!lev_expected = [2 3] |
endif endfunction !test !x = 0:2 |
!y = x |
!z = x' * y |
i = 1 |
jj = 1:size (z,1) |
x = size (z) 1:nc |
y = 1:nr |
z = varargin{1} |