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: |
1b4eaf6372457c8b0058c079e53dcb50 |
User & Date: | gawthrop@users.sourceforge.net on 1996-08-14 08:21:27 |
Other Links: | branch diff | manifest | tags |
Context
1996-08-14
| ||
08:36:16 | Initial revision check-in: 7d99654f67 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
08:21:27 | Initial revision check-in: 1b4eaf6372 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1996-08-12
| ||
20:22:20 |
Paramaters passed via an internal call to _numpar. _args script can overide these parameters - sneaky. check-in: 2f8552abe0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/m/write_matrix.m version [bb5a78fe95].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 | function write_matrix(matrix,name); % Writes the matrix function file % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% filename = [name, '.m']; filenum = fopen(filename,'w'); % Write the function m-file for the causal bond graph pc = '%'; fprintf(filenum, 'function data = %s\n', name); fprintf(filenum, '%s m = %s\n\n', pc, name); fprintf(filename, 'm = [\n'); [N,M] = size(matrix); for i = 1:N, for j = 1:M fprintf(filename, '\t%g', matrix(i,j)); end; fprintf(filename, '\n'); end; fprintf(filename, '];\n'); fprintf(filename, '\n'); fclose(filenum); |