subplots.m

来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 20 行

M
20
字号
function[h]=subplots(m,n)%SUBPLOTS  Return handles to subplots of the current figure.%%   H=SUBPLOTS(M,N) returns a vector H containing all handles to the%   subplots of the current figure, where M is the number of rows and%   N is the number of columns.%%   AXES(H(i)) is then equivalent to SUBPLOT(M,N,i).  %   __________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information%   (C) 2000, 2004 J.M. Lilly --- type 'help jlab_license' for details        for i=1:n  for j=1:m     index=(j-1)*n+i;     h(index)=subplot(m,n,index);  endend  

⌨️ 快捷键说明

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