get_marker.m

来自「实现地震勘探中」· M 代码 · 共 30 行

M
30
字号
function mark=get_marker(index,markers)% Function gets the marker symbol associated with index "index"% Default markers are {'^';'v';'<';'>';'s';'d';'+';'x';'o';'p';'h';'.'}% If index "index" is greater than the number of markers specified the markers % are repeated.% See also: get_linestyle, get_color%% Written by: E. R.% Last updated: April 5, 2007: Add second input argument%%          mark=get_marker(index)% INPUT% index    index for which a marker is requested% markers  optional; one or more markers to replace the defaults% OUTPUT% mark     string with marker symbol%% EXAMPLE%          mark=get_marker(2,{'d','s','o'})if nargin == 1  || isempty(markers)   markers={'^';'v';'<';'>';'s';'d';'+';'x';'o';'p';'h';'.'};elseif ischar(markers)    markers={markers};     endmark=markers{mod(index-1,length(markers))+1};

⌨️ 快捷键说明

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