Index: mttroot/mtt/bin/trans/mtt_header ================================================================== --- mttroot/mtt/bin/trans/mtt_header +++ mttroot/mtt/bin/trans/mtt_header @@ -10,10 +10,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.57 2004/06/20 10:18:00 gawthrop +## Explicitly size vectors - avoid default row vector bug +## ## Revision 1.56 2003/04/17 20:07:33 geraint ## Added rule to create _sese.m ## ## Revision 1.55 2002/10/30 01:15:20 gawthrop ## Now gives correct-size matrices for dm rep. @@ -289,10 +292,11 @@ states=yes; inputs=yes; parameters=yes; output='mttdx,mtte' args=$eqnargs + zeromatrices='dx,e' ;; csex) states=yes; inputs=yes; parameters=yes; @@ -327,10 +331,11 @@ else states=yes; parameters=yes; declareinputs=yes declarestates=yes + zeromatrices=u fi ;; logic) states=no; inputs=no; @@ -352,17 +357,19 @@ states=yes; inputs=yes; parameters=yes; output='mttdx' args=$eqnargs + zeromatrices='dx' ;; odeo) states=yes; inputs=yes; parameters=yes; output='mtty' args=$eqnargs + zeromatrices='y' ;; ode2odes) states=no; inputs=no; parameters=no; @@ -381,10 +388,11 @@ states=yes; inputs=yes; parameters=yes; output="mttdx,mtty"; args=$eqnargs; + zeromatrices="dx,y"; ;; sm) states=no; inputs=no; parameters=yes; @@ -413,10 +421,11 @@ inputs=no; parameters=yes; output=mttx args=mttpar declarestates=yes + zeromatrices=x ;; sim) states=no; inputs=no; parameters=no; @@ -577,16 +586,25 @@ N=$Ny; M=$Nu ;; e) N=$Nx; M=$Nx ;; + x) + N=$Nx; M=1 + ;; + dx) + N=$Nx; M=1 + ;; edx) N=$Nx; M=1 ;; y) N=$Ny; M=1 ;; + u) + N=$Nu; M=1 + ;; open) N=$Nx; M=1 ;; ax) N=$Nx; M=1