www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@modeldev/mdevtestplan.m
function T= mdevtestplan(mdev) %MDEVTESTPLAN finds the testplan associated with a modeldev node. % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. p= Parent(mdev); while p~=0 && ~isa(mdev,'mdevtestplan') mdev= info(p); p= Parent(mdev); end if isa(mdev,'mdevtestplan') T=mdev; else error(message('mbc:modeldev:InvalidState1')); end