scpltopt.m

来自「computation of conformal maps to polygon」· M 代码 · 共 28 行

M
28
字号
function [nqpts,minlen,maxlen,maxrefn] = scpltopt(options)
%SCPLTOPT Parameters used by S-C plotting routines.
%   OPTIONS(1): Number of quadrature points per integration.
%               Approximately equals -log10(error).  Increase if plot
%               has false little zigzags in curves (default 4). 
%   OPTIONS(2): Minimum line segment length, as a proportion of the
%               axes box (default 0.005).
%   OPTIONS(3): Maximum line segment length, as a proportion of the
%               axes box (default 0.05).
%   OPTIONS(4): Max allowed number of adaptive refinements made to meet
%               other requirements (default 10).
%      
%   See also HPPLOT, DPLOT, DEPLOT, STPLOT, RPLOT, CRPLOT, CRRPLOT.

%   Copyright 1998 by Toby Driscoll.
%   $Id: scpltopt.m 84 1999-09-30 23:10:30Z tad $

user = options;
lenu = length(user);
options = zeros(1,4);
options(1:lenu) = user(1:lenu);
options = options + (options==0).*[5,.005,.02,16];

nqpts = options(1);
minlen = options(2);
maxlen = options(3);
maxrefn = options(4);
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?