subplot3.m

来自「利用HMM的方法的三种语音识别算法」· M 代码 · 共 14 行

M
14
字号
function fignum = subplot3(nrows, ncols, fignumBase, plotnumBase)
% function subplot3(nrows, ncols, fignumBase, plotnumBase)
% Choose a subplot number, opening a new figure if necessary
% eg nrows=2, ncols = 2, we plot on (fignum, plotnum) = (1,1), (1,2), (1,3), (1,4), (2,1), ...

nplotsPerFig = nrows*ncols;
fignum = fignumBase + div(plotnumBase-1, nplotsPerFig);
plotnum = wrap(plotnumBase, nplotsPerFig);
figure(fignum);
if plotnum==1, clf; end
subplot(nrows, ncols, plotnum);


⌨️ 快捷键说明

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