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: |
5cf0d045add38ffd9bd8924c74d5b79d |
User & Date: | gawthrop@users.sourceforge.net on 1998-03-22 10:26:47 |
Other Links: | branch diff | manifest | tags |
Context
1998-03-22
| ||
11:13:27 | Back under RCS check-in: 99b4294a56 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:26:47 | Initial revision check-in: 5cf0d045ad user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1998-03-20
| ||
15:09:26 | Changed order of prerequisites for _dae.r to put _rdae.r first. check-in: 51a30a0db0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/matlab_matrix.r version [c0199f19b4].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% Model Transformation Tools %%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Reduce function to write matrices in matlab form % P.J.Gawthrop March 1998 % Copyright (c) P.J.Gawthrop, 1998 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Load the general translator package LOAD GENTRAN; GENTRANLANG!* := 'FORTRAN; ON GENTRANSEG; MAXEXPPRINTLEN!* := 80; PROCEDURE matlab_Matrix; BEGIN ON NERO; write "mtt_matrix = zeros(", mtt_matrix_n, ",", mtt_matrix_m, ");"; IF MTT_Matrix_n>0 THEN IF MTT_Matrix_m>0 THEN BEGIN FOR i := 1:MTT_Matrix_n DO IF MTT_Matrix_m>1 THEN BEGIN FOR j := 1:MTT_Matrix_m DO GENTRAN mtt_matrix(i,j) ::=: mtt_matrix(i,j); END ELSE BEGIN GENTRAN mtt_matrix(i) ::=: mtt_matrix(i,1); END; END; write MTT_matrix_name, " = mtt_matrix;"; END; END;; |