Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.26 1996/09/10 17:04:47 peter +## Added impulse response (ir) representation. +## ## Revision 1.25 1996/08/30 20:03:45 peter ## Removed dependencies from vc ## ## Revision 1.24 1996/08/30 18:37:17 peter ## inor changes. @@ -162,13 +165,12 @@ rm -f *.log mtt_info.txt warning.txt rm -f *_abg.m *_args.* rm -f *_rbg.* *_cmp.* *_fig.fig *_*cbg.* *_ese.* *_def.* rm -f *_dae*.* *_cse.* *_ode*.* *_obs.* *_rfe.* *_ss.* rm -f *_dm.* *_csm.* *_sm.* *_tf.* *_sr*.* *_ir*.* *_*fr.* - rm -f *_rep.* + rm -f *_rep.* *_numpar.m rm -f mtt_error.txt mtt_info.txt - exit fi # Clean up named system if [ "$2" = "clean" ] && [ "$3" = "" ]; then echo 'Removing all generated files for system ' $1 @@ -175,11 +177,11 @@ rm -f *.log mtt_info.txt warning.txt rm -f $1_abg.m $1_args.* rm -f $1_rbg.* $1_cmp.* $1_fig.fig $1*_*cbg.* $1*_ese.* $1_def.* rm -f $1_dae*.* $1_cse.* $1_ode*.* $1_obs.* $1_rfe.* $1_ss.* rm -f $1_dm.* $1_csm.* $1_sm.* $1_tf.* $1_sr*.* $1_ir*.* $1_*fr.* - rm -f $1_rep.* + rm -f $1_rep.* $1_numpar.m rm -f mtt_error.txt mtt_info.txt exit fi # Invoke explicit requests for modification @@ -256,11 +258,11 @@ VC='ok' VCext='r' ;; simp ) VC='ok' VCext='r' ;; - numpar ) + params ) VC='ok' VCext='m' ;; input ) VC='ok' VCext='m' ;; @@ -308,10 +310,20 @@ )> $1_simp.r $1_numpar.m: $1_sympar.r sympar2numpar_r2m $1 +$1_params.m: + echo Creating $1_params.m + ( \ + echo "function u = $1_params(t)"; \ + echo "%% Paramaters file for system $1 ($1_params.m)"; \ + echo "%% This file provides the system params for simulation:";\ + cat $MTTPATH/trans/m/rcs_header.txt; \ + echo; \ + )> $1_params.m + $1_input.m: echo Creating $1_input.m ( \ echo "function u = $1_input(t)"; \ echo "%% Input file for system $1 ($1_input.m)"; \