Functions | |
endif | if (nargin==3) triplot(tri |
elseif (ischar(z)) triplot(tri | |
else | newplot () |
if (nargout > 0) h | |
else | patch ("Vertices",[x(:), y(:), z(:)],"Faces", tri,"FaceColor","none","EdgeColor", __next_line_color__(), varargin{:}) |
endif | if (!ishold()) set(gca() |
!rand ('state', 10)%!x | |
!trimesh (tri, x(:), y(:), z(:)) | |
Variables | |
function | h |
endif | x |
endif | y |
z | |
endif | view |
endif | xgrid |
endif | on |
endif | ygrid |
endif | zgrid |
endif endif endfunction!demo | !N = 10 |
!y = 3 - 6 * rand (N, N) | |
!z = peaks (x, y) | |
!tri = delaunay (x(:), y(:)) |
!rand | ( | 'state' | , | |
10 | ||||
) |
!trimesh | ( | tri | , | |
x(:) | , | |||
y(:) | , | |||
z(:) | ||||
) |
elseif | ( | ischar(z) | ) |
endif if | ( | ! | ishold() | ) |
if | ( | nargout | , | |
0 | ||||
) |
endif newplot | ( | ) |
else patch | ( | "Vertices" | , | |
"Faces" | , | |||
tri | , | |||
"FaceColor" | , | |||
"none" | , | |||
"EdgeColor" | , | |||
__next_line_color__() | ||||
) |
endif endif endfunction !demo !N = 10 |
!tri = delaunay (x(:), y(:)) |
!y = 3 - 6 * rand (N, N) |
!z = peaks (x, y) |
endif view |
x |
y |
z |