📄 numoflevs.m
字号:
function N = numoflevs(L)%------------------------------------------------------------------------------%% Extracts the number of levels from the array of bookkeeping.%% L = 2D integer array of bookkeeping.%% Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl> http://homepages.cwi.nl/~pauldz/% Last Revision: December 11, 2001.% Copyright 2001-2002 Stichting CWI, Amsterdam%------------------------------------------------------------------------------[nL, mL] = size(L);if mL ~= 6 error(' numoflevs - books do not fit ');endN = L(nL,1);if N < 1 error(' numoflevs - the number of levels should be at least one ');end%------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -