Code covered by the BSD License
-
count=AMPLcomment(fid,st)
% function count=AMPLcomment(fid,st)
-
count=AMPLmatrix(fid,pname,p,...
% function count=AMPLmatrix(fid,pname,p,[rowheads,colheads])
-
count=AMPLmatrixint(fid,pname...
-
count=AMPLmtrx3d(fid,pname,p,...
% function count=AMPLmatrix(fid,pname,p,[rowheads,colheads,zheads])
-
count=AMPLscalar(fid,pname,p)...
-
count=AMPLscalarint(fid,pname...
% function count=AMPLscalarint(fid,pname,p)
-
count=AMPLvector(fid,pname,p)...
-
count=AMPLvectorint(fid,pname...
-
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