www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregdataset/numstages.m
function ns = numstages(S) %NUMSTAGES Number of stages in data % % NS = NUMSTAGES(SS) returns the number of hierarchical stages in the % data. % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. s = size(S); if s(3)==s(1) ns = 1; else ns = 2; end