www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregmodel/ytranscmp.m
function ret=ytranscmp(m1,m2) % YTRANSCMP Compare ytrans settings % % OK=YTRANSCMP(M1,M2) returns 1 if the two models have the % same ytrans settings (ytrans AND tbs are the same), 0 % otherwise. % % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isa(m1,'xregmodel') || ~isa(m2,'xregmodel') ret=false; else ret = strcmp(m1.Output.Transform,m2.Output.Transform) && m1.TransBS==m2.TransBS; end