Index: mttroot/mtt/bin/trans/makesspar ================================================================== --- mttroot/mtt/bin/trans/makesspar +++ mttroot/mtt/bin/trans/makesspar @@ -13,20 +13,23 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.1 1998/02/06 15:53:49 peterg +## Initial revision +## ############################################################### #Inform user echo Creating $1_sspar.r echo "% Steady-state parameters for system $1 ($1_sspar.r)"> $1_sspar.r echo "% Generated by MTT on" `date`. >> $1_sspar.r cat $MTTPATH/trans/m/rcs_header.txt >> $1_sspar.r -echo "% Set all states to zero" >> $1_sspar.r +echo "% Set all states and inputs to zero" >> $1_sspar.r $MATRIX <> /dev/null fnum=fopen("$1_sspar.r","a"); @@ -33,10 +36,15 @@ [nx,ny,nu,nz,nyz] = $1_def; for i = 1:nx fprintf(fnum,"MTTX%i := 0;\n", i); end; +fprintf(fnum,"\n"); +for i = 1:nu + fprintf(fnum,"MTTU%i := 0;\n", i); +end; + EOF echo "END;;" >> $1_sspar.r