Index: mttroot/mtt/bin/trans/m/mtt2sys.m ================================================================== --- mttroot/mtt/bin/trans/m/mtt2sys.m +++ mttroot/mtt/bin/trans/m/mtt2sys.m @@ -19,25 +19,28 @@ struc_name = sprintf("%s_struc",Name); endif if nargin<2 # Use predefined parameters if exist(numpar_name)!=2 # Check file exists - error("File %s.m does not exist: use to create it",\ - numpar_name,Name); +# error("File %s.m does not exist: use to create it",\ +# numpar_name,Name); + mtt(Name,"numpar"); endif eval(sprintf("par=%s_numpar;", Name)); # Parameters endif ## Check files exist if exist(sm_name)!=2 - error("File %s.m does not exist: use to create it",\ - sm_name,Name); +# error("File %s.m does not exist: use to create it",\ +# sm_name,Name); + mtt(Name,"sm"); endif if exist(struc_name)!=2 - error("File %s.m does not exist: use to create it",\ - struc_name,Name); +# error("File %s.m does not exist: use to create it",\ +# struc_name,Name); + mtt(Name,"struc"); endif eval(sprintf("[A,B,C,D]=%s_sm(par);", Name)); # State matrices sys = ss2sys(A,B,C,D); # Sys form eval(sprintf("[sys.inname,sys.outname,sys.stname]=%s_struc;", Name)); # Setup names