www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregmodel/setResponse.m
function m= setResponse(m,Name,Units,Symbol) %SETRESPONSE set response details for model % % m= setResponse(m,Name,Units,Symbol); % m= setResponse(m,Name,Units); % m= setResponse(m,Name); % Default units '' % Default symbol Name % Copyright 2006-2008 The MathWorks, Inc. if nargin<3 % default is for there to be no units Units= ''; end if nargin<4 % default is for the symbol to be the same as name Symbol= Name; end % store response information in a structure yi = struct('Name',Name,'Symbol',Symbol,'Units',Units); m= yinfo(m,yi);