⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hlines.m

📁 JLAB is a set of Matlab functions I have written or co-written over the past fifteen years for the p
💻 M
字号:
function[h]=hlines(y,sty)%HLINES   Add horizontal lines to a plot.%%   HLINES(Y,STYLE) puts horizontal lines at locations Y having style%   described by the string STYLE.  HLINES draws the lines to fit the%   current axis.%%   The SYTLE strings follow the format specified in LINESTYLE.  Thus%   STYLE='2b--' draws blue dotted lines of width 2.%%   HLINES(Y) uses the default STYLE='g--', a green dashed line.%%   See also VLINES.	%   _________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information %   (C) 2000--2006 J.M. Lilly --- type 'help jlab_license' for details  if strcmp(y,'--t')    returnendif nargin==1	sty='g--';endhold ony=y(:)';ax=axis;x1=ax(1)*ones(size(y));x2=ax(2)*ones(size(y));y=[y;y];x=[x1;x2];h=plot(x,y);linestyle(h,sty);axis(ax)if nargout==0   clear hend

⌨️ 快捷键说明

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