Code covered by the BSD License  

Highlights from
publish2latex

image thumbnail

publish2latex

by

 

09 Apr 2013 (Updated )

Using full Latex markup in m-files to generate high quality documentation. Version 1.3

convertCellLines( cellLines )
function cellLines = convertCellLines( cellLines )
%
noLines = length( cellLines );
%
% the first noncomment is the start of code
%
at = 2;
line = cellLines{at};
while (strcmp(line(1) , '%')&&(at<noLines))
    line = ['%', line(2:end)];
    cellLines{at} = line;
    at = at + 1;
    line = cellLines{at};
end;

Contact us