www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conswitch/getTolerance.m
function tol = getTolerance(obj) %GETTOLERANCE get the tolerance for the switch factors % % OBJ = GETTOLERANCE(OBJ) gets the tolerance on the switch factors. % The tolerance is the relative amount that an input can miss a switched % model by and still be counted as hitting it. TOL is a vector of values % the same length as the number of switch factors. % Copyright 2008 The MathWorks, Inc. tol = obj.Tolerance;