Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e90b76f7beca141d877109122486976a |
User & Date: | gawthrop@users.sourceforge.net on 1998-02-25 22:10:25 |
Other Links: | branch diff | manifest | tags |
Context
1998-02-25
| ||
22:11:28 | Added big matrix version check-in: d76eb85012 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
22:10:25 | Initial revision check-in: e90b76f7be user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
22:09:48 | Added simpar representation. check-in: 31c3736437 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/txt2m version [68fcb287b5].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: txt2m # Converts txt file to matlab file (for numpar and state) # Copyright (c) P.J.Gawthrop 1998 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% system=$1 representation=$2 if [ "$representation" = "state" ]; then name='x'; fi if [ "$representation" = "input" ]; then name='u'; 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 "%% $2 file ($1_$2.m)" >> $1_$2.m echo "%% Generated by MTT at `date`" >> $1_$2.m # Global variable list echo >> $1_$2.m echo 'if (nargin==0), t=0; end;'>> $1_$2.m echo >> $1_$2.m echo "% Global variable list" >> $1_$2.m sympar2global_txt2m $1 >> $1_$2.m echo "global DT;" >> $1_$2.m #Write out the variables in m format. awk -F# '{ if (NF<2) print $1 if (NF>1) print $1 "% " $2 }' $1_$2.txt | \ sed 's/{//' | sed 's/}/end/' >> $1_$2.m |