Functions | |
elseif (size_equal(x, y)) if(nargin | |
endif else | error ("polyarea: x and y must have the same shape") |
!assert (polyarea(x, y), 4, eps)%!assert(polyarea([x | |
eps | !assert (polyarea([x, x],[y, y], 1),[4, 4], eps)%!assert(polyarea([x |
Variables | |
function | a |
endif endfunction!shared | x |
endif endfunction!shared y | !x = [1 |
!y = [1 |
eps !assert | ( | polyarea([x, x],[y, y], 1) | , | |
eps | ||||
) |
!assert | ( | polyarea(x, y) | , | |
4 | , | |||
eps | ||||
) |
elseif | ( | size_equal(x, y) | ) |
endif endfunction !shared y !x = [1 |
!y = [1 |
eps x |