Functions | |
if (nargin==0) print_usage() | |
elseif (nargin==1||(nargin==2 &&!isnumeric(varargin{2}))) ioff | |
elseif (nargin > 1 &&isnumeric(varargin{2})) ioff | |
while (ioff<=nargin) arg | |
if ((ischar(arg)||iscell(arg))&&!have_line_spec)[linespec | |
if (valid) line_spec | |
else | error ("compass: invalid linespec") |
endif else | error ("compass: unrecognized argument") |
id | arrowsize () |
newplot () | |
unwind_protect_cleanup | axes (oldh) |
end_unwind_protect | if (nargout > 0) retval |
Variables | |
function | retval |
arrowsize = 0.25 | |
z = varargin{1}(:).' | |
u = real (z) | |
v = imag (z) | |
endif | line_spec = "b-" |
have_line_spec = false | |
valid = __pltopt__ ("compass", arg, false) | |
break | |
endif endwhile | n = length (u) |
xend = u | |
xtmp = u .* (1 - arrowsize) | |
yend = v | |
ytmp = v .* (1 - arrowsize) | |
x = [zeros(1, n) | |
y = [zeros(1, n) | |
oldh = cart2pol (x, y) gca () | |
unwind_protect | axes (h) |
hlist = polar (h, r, p, line_spec) | |
endif endfunction!demo | !a = toeplitz([1;randn(9,1)],[1,randn(1,9)]) |
id arrowsize | ( | ) | [virtual] |
elseif | ( | nargin | , | |
1 && | isnumericvarargin{2} | |||
) |
end_unwind_protect if | ( | nargout | , | |
0 | ||||
) |
if | ( | valid | ) |
if | ( | (ischar(arg)||iscell(arg))&&! | have_line_spec | ) |
if | ( | nargin | = =0 |
) |
newplot | ( | ) |
while | ( | ioff<= | nargin | ) |
endif endfunction !demo !a = toeplitz([1;randn(9,1)],[1,randn(1,9)]) |
arrowsize = 0.25 |
break |
have_line_spec = false |
oldh = cart2pol (x, y) gca () |
function retval |
u = real (z) |
v = imag (z) |
valid = __pltopt__ ("compass", arg, false) |
x = [zeros(1, n) |
y = [zeros(1, n) |
yend = v |
ytmp = v .* (1 - arrowsize) |
z = varargin{1}(:).' |