Overview
Comment: | Uses filenum instead of filename. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
208916aa1b525ae5ac05890804769ae5 |
User & Date: | gawthrop@users.sourceforge.net on 1996-12-04 21:53:49 |
Other Links: | branch diff | manifest | tags |
Context
1996-12-05
| ||
09:05:34 | Added strcmp test for empty args string. check-in: 3025d1c8ef user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1996-12-04
| ||
21:53:49 | Uses filenum instead of filename. check-in: 208916aa1b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
21:53:00 | Initial revision check-in: cd45d5ef54 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/mat2mfile.m from [a2ab0a40d1] to [e8cb0dd3b5].
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | % mat2mfile(matrix, matrix_name, filenum) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Copyright (c) P.J. Gawthrop, 1996. %Writes out a matrix as a matlab m-file [N, M] = size(matrix); empty = (N==1)&(M==1)&(matrix(1,1)==0); | > > > < < < < | 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 | % mat2mfile(matrix, matrix_name, filenum) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %% Revision 1.1 1996/12/04 21:53:00 peterg % %% Initial revision % %% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Copyright (c) P.J. Gawthrop, 1996. %Writes out a matrix as a matlab m-file [N, M] = size(matrix); empty = (N==1)&(M==1)&(matrix(1,1)==0); %Write out the matrix fprintf(filenum, '%s = [\n', matrix_name); if ~empty for i = 1:N, for j = 1:M fprintf(filenum, '%1.0f ', matrix(i,j)); |
︙ | ︙ |