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: |
26f89d6fe25dc9045dd95a76c1de0464 |
User & Date: | gawthrop@users.sourceforge.net on 1996-08-15 16:24:55 |
Other Links: | branch diff | manifest | tags |
Context
1996-08-15
| ||
16:46:06 | Initial revision check-in: c38431afc2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
16:24:55 | Initial revision check-in: 26f89d6fe2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
16:24:43 | Uses T in place of t to avoid name clash within function. check-in: 6df02114e5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/dae2daes_m version [d864b174f8].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: dae2daesol_m # Transforms descriptor matrix rep to step response # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### echo Creating $1_daesol.m rm -f dae2daesol_m.log if [ "$2" = "" ]; then PARAMS='T=[0:0.1:10];x0=zeros(10,1),dx0=zeros(10,1)' echo Using default parameter $PARAMS else PARAMS=$2; fi PARAMS="$PARAMS ;" $MATRIX << EOF > dae2daesol_m.log [nx,ny,nu,nz,nyz] = $1_def; t=0; %Just in case its in the parameter list $PARAMS %Defaults if exist('T')==0 T=[0:0.1:10] end; if exist('x0')==0 x0 = zeros(nx+nz,1); end; if exist('dx0')==0 dx0 = zeros(nx+nz,1); end; [n,m]=size(T); if m>n T=T'; end; x = dassl('$1_dae', x0, dx0, T); i=0; for tt=T' i=i+1; y(i) = $1_daeo(x(i,:),tt); end; write_matrix([T,y], '$1_daesol'); EOF |