Index: mttroot/mtt/bin/trans/txt2m ================================================================== --- mttroot/mtt/bin/trans/txt2m +++ mttroot/mtt/bin/trans/txt2m @@ -13,29 +13,34 @@ # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ +# %% Revision 1.2 1998/07/25 09:48:31 peterg +# %% Tidied up for Pascal version +# %% # %% Revision 1.1 1998/02/25 22:10:25 peterg # %% Initial revision # %% # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% system=$1 representation=$2 if [ "$representation" = "state" ]; then - name='MTTx'; + name='mttx'; + arg=''; fi if [ "$representation" = "input" ]; then - name='MTTu'; + name='mttu'; + arg='(mttx,mttt)' fi # Inform user echo Creating $1_$2.m #Create the $2 file complete with headers. -echo "function $name = $1_$2(t)" > $1_$2.m +echo "function $name = $1_$2$arg" > $1_$2.m echo "%% $2 file ($1_$2.m)" >> $1_$2.m echo "%% Generated by MTT at `date`" >> $1_$2.m # Global variable list #echo >> $1_$2.m