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: |
064c26e4bf6904eacbafb7e36d8ffbd2 |
User & Date: | gawthrop@users.sourceforge.net on 1998-07-25 07:10:41 |
Other Links: | branch diff | manifest | tags |
Context
1998-07-25
| ||
08:05:41 | Reverted to original default - not using SS mechanism check-in: 580b91e277 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
07:10:41 | Initial revision check-in: 064c26e4bf user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1998-07-24
| ||
17:10:34 | *** empty log message *** check-in: e2daf5a27a user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/def_r2m version [a8b6e17482].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: def_r2m # transforms definitions from reduce to m file. # Copyright (c) P.J.Gawthrop 1996 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### #Inform user echo Creating $1_def.m # Remove the old log file rm -f def_r2m.log # Use reduce to accomplish the transformation reduce >def_r2m.log << EOF ON BigFloat, NumVal; PRECISION 16; %Compatible with Matlab %Read in the definitions file IN "$1_def.r"; OUT "$1_def.m"; %Headings - M-File style %(Note. The ;; are deleted by for2mat) write "function [nx,ny,nu,nz,nyz] = $1_def;;"; write "% [nx,ny,nu,nz,nv] = $1_def;;"; write "% Linearised descriptor matrices for system $1"; write "% File $1_def.m"; write "% Generated by MTT"; write ""; write "nx = ", MTTNx, ";"; write "ny = ", MTTNy, ";"; write "nu = ", MTTNu, ";"; write "nz = ", MTTNz, ";"; write "nyz = ", MTTNyz, ";"; SHUT "$1_def.m"; |