Documentation of getmfth


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


Function Synopsis

mfname=getmfth(eta)

Help text

GETMFTH Gets the name of the .m-file that defines the model structure

   MFNAME = getmfth(TH)

   TH: The model structure defined in the THETA-format (See help theta)
   MFNAME: The name of the m-file that defines the structure

Cross-Reference Information

This function calls This function is called by

Listing of function getmfth

function mfname=getmfth(eta)

%   L. Ljung 10-2-90,10-10-93
%   Copyright (c) 1986-98 by The MathWorks, Inc.
%   $Revision: 2.3 $  $Date: 1997/12/02 03:40:33 $

if nargin < 1
   disp('Usage: MFILE_NAME = GETMFTH(TH)')
   return
end

if ~isthss(eta),error('This is not a state-space based model!'),end
[nr,nc]=size(eta);
if eta(2,8)<4, mfname='ssmodx9';return,end
if eta(2,8)==11, mfname='ssmodx8';return,end
sspm=eta(1,8:nc);
sspm=sspm(1:max(find(sspm~=0)));
mfname=setstr(sspm);