Functions | |
if (nargout > 0) h | |
else | plot ([x(idx);NaN *ones(1, nt)](:),[y(idx);NaN *ones(1, nt)](:), varargin{:}) |
endif endfunction!demo | !rand ('state', 2)%!x |
!triplot (tri, x, y) | |
Variables | |
function | h |
endif | idx = tri(:, [1, 2, 3, 1]).' |
nt = size (tri, 1) | |
!y = rand (20, 1) | |
!tri = delaunay (x, y) |
endif endfunction !demo !rand | ( | 'state' | , | |
2 | ||||
) |
!triplot | ( | tri | , | |
x | , | |||
y | ||||
) |
if | ( | nargout | , | |
0 | ||||
) |
else plot | ( | [x(idx);NaN *ones(1, nt)] (:) | , | |
[y(idx);NaN *ones(1, nt)] (:) | ||||
) |
!tri = delaunay (x, y) |
!y = rand (20, 1) |