Functions | |
if (nargin< 2) print_usage() | |
newplot () | |
unwind_protect_cleanup | axes (oldh) |
end_unwind_protect endif | if (!ishold()) set(get(tmp |
end_unwind_protect endif endif | if (nargout > 0) retval |
!scatter3 (x(:), y(:), z(:),[], z(:)) | |
!scatter3 (x(:), y(:), z(:), 10, z(:),"s") | |
!scatter3 (x(:), y(:), z(:), 20 *z(:), z(:),"s") | |
!scatter3 (x(:), y(:), z(:), 20 *z(:),[],"s") | |
Variables | |
function | retval |
else | oldh = gca () |
unwind_protect | axes (h) |
tmp = __scatter__ (h, 3, "scatter3", varargin{:}) | |
end_unwind_protect endif | parent |
end_unwind_protect endif | view |
endif endfunction | !demo [x, y, z] = peaks (20) |
!demo | !x = rand (20,1) |
!y = rand (20,1) | |
!z = rand (20,1) |
!scatter3 | ( | x(:) | , | |
y(:) | , | |||
z(:) | , | |||
20 * | z:, | |||
"s" | ||||
) |
!scatter3 | ( | x(:) | , | |
y(:) | , | |||
z(:) | , | |||
20 * | z:, | |||
z(:) | , | |||
"s" | ||||
) |
!scatter3 | ( | x(:) | , | |
y(:) | , | |||
z(:) | , | |||
10 | , | |||
z(:) | , | |||
"s" | ||||
) |
!scatter3 | ( | x(:) | , | |
y(:) | , | |||
z(:) | , | |||
z(:) | ||||
) |
end_unwind_protect endif endif if | ( | nargout | , | |
0 | ||||
) |
end_unwind_protect endif if | ( | ! | ishold() | ) |
if | ( | ) |
newplot | ( | ) |
endif endfunction !demo[x, y, z] = peaks (20) |
!demo !x = rand (20,1) |
!y = rand (20,1) |
!z = rand (20,1) |
function retval |
tmp = __scatter__ (h, 3, "scatter3", varargin{:}) |
end_unwind_protect endif view |