Documentation of idgtws


Global Index (short | long) | Local contents | Local Index (short | long)


Help text

SCRIPT FILE IDGTWS
   Script file that reads the model structure from the workspace.
   The variable XIDarg defines which model structure to use.

Cross-Reference Information

This script calls This script is called by

Listing of script idgtws



%   L. Ljung 4-4-94
%   Copyright (c) 1986-98 by The MathWorks, Inc.
%   $Revision: 2.3 $  $Date: 1997/12/02 03:41:59 $

global XIDparest
XIDnn=get(XIDparest(3),'string');XIDerr=0;
if isempty(XIDnn)
   errordlg('You must supply model orders or a name in the Orders: edit field.');
   return
end

if strcmp(XIDarg,'arx')
        eval('iduiarx(''estimate'',eval(XIDnn),XIDnn);','XIDerr=1;')
elseif strcmp(XIDarg,'io')
        eval('iduiio(''estimate'',eval(XIDnn),XIDnn);','XIDerr=1;')
elseif strcmp(XIDarg,'ss')
        eval('iduiss(''estimate'',eval(XIDnn));','XIDerr=1;')
end
if XIDerr
   errordlg(str2mat(['The variable ',XIDnn,' is not on the Model board'],...
             'and does not exist in the MATLAB workspace.'));
end
clear XIDarg XIDnn goto_ws XIDerr