ylima.m

来自「hspice toolbox with matlab.」· M 代码 · 共 18 行

M
18
字号
% Set Y-limits for all plots in current figure.
% Usage: ylima([ys ye])
%  Note:  ylima('auto') resets to autoscaling on all graphs
%    Or: 'ylima' to set all curves to same as current axis
%  Written by Scott Meninger of MIT, based
%  xlima code by Scott Willingham of Silicon Laboratories, Inc.

function ylima(yy)

if nargin == 0
    yy = ylim;
end

h=get(gcf,'Children');
for i = 1:length(h)
    ylim(h(i), yy);
end

⌨️ 快捷键说明

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