Code covered by the BSD License
- count=AMPLcomment(fid,st)% function count=AMPLcomment(fid,st)
- count=AMPLmatrix(fid,pnam...% function count=AMPLmatrix(fid,pname,p,[rowheads,colheads])
- count=AMPLmatrixint(fid,p...
- count=AMPLmtrx3d(fid,pnam...% function count=AMPLmatrix(fid,pname,p,[rowheads,colheads,zheads])
- count=AMPLscalar(fid,pnam...
- count=AMPLscalarint(fid,p...% function count=AMPLscalarint(fid,pname,p)
- count=AMPLvector(fid,pnam...
- count=AMPLvectorint(fid,p...
-
View all files
from
AMPL data file toolbox
by Arthur Richards
Writing Matlab data to AMPL data files
|
| count=AMPLcomment(fid,st) |
function count=AMPLcomment(fid,st)
%
% function count=AMPLcomment(fid,st)
%
% Write comment to AMPL data file
%
% fid : file handle of the data file from 'fopen'
% st : string to write as comment
%
% count : number of bytes written
%
% Copyright A. Richards, MIT, 2002
%
c1=fprintf(fid,['# ' st]);
c2=fprintf(fid,'\n');
count=c1+c2;
|
|
Contact us