mystairs.m

来自「基于Matlab的地震数据处理显示和测井数据显示于处理的小程序」· M 代码 · 共 34 行

M
34
字号
function handle=mystairs(x,y,style)% Plots stair step graph; like "stairs, but with an "upstroke"%% Written by: E. R.: October 7, 2003% Last updated: February 21, 2006: Handle Matlab 7%%           handle=mystairs(x,y,style)% INPUT% x         edges of stairs % y         level of stairs (the number of edges exceeds by 1 the number of%           levels of the stairs; i.e. length(x)=length(y)+1 )% style     optional plot linestyle% OUTPUT% handle(s) to stairstep graphsglobal S4Mxx=[x(1);x(:)];yy=[0;y(:);0];if S4M.matlab_version < 7   if nargin == 2      handle=stairs(xx,yy);   else      handle=stairs(xx,yy,style);   endelse   if nargin == 2      handle=stairs('v6',xx,yy);   else      handle=stairs('v6',xx,yy,style);   endend

⌨️ 快捷键说明

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