Code covered by the BSD License
- addSectionAt( generatedFi...
- analyzeCellLines( cellLin...% Purpose : This function analyses a cell from the m file to determine the
- charArray2cells( stringAr...% Purpose : Convert a character array to a cell array
- convertCellLines( cellLin...
- epscombine( eps1 , eps2 ,...
- figure2eps(H,fileName, ma...
- generateLatex( fObjPOL )
% Purpose : Give the object defining the necessary files, this procedure
- imagefigure( imageIn, map...
- mFileCells( fileLines )
% Purpose : This function identified the segments the .m file which
- prepareMCode( codeLines )
% Purpose : This function modifies the m code to be execture to ensure that
- printFigure(H,FileName,Fo...% Description: Function to print a figure to disk
- publishFigureFormat
- readInTextFile( filePath,...
- removeLatexMarker( line )
% Purpose : Remove the comment marker form a line
- runLatex( fObj )
% Purpose : This file runs the latex environment to generate all the files
- siamFigure;
% Special Settings for normal figures
- siamFigureSmall
% Special Settings for normal figures
- writeOutFile( fileLines, ...% Purpose : Give a cell array of file lines, this function writes out the
- RequiredFilesClass
- HarkerOleary.m
- Introduction.m
- convert.m
- dopHeader.m
- publish2latex.m
- publishTemplate.m
-
View all files
from
publish2latex
by Matthew Harker, Paul O'Leary,
Using full Latex markup in m-files to generate high quality documentation.
Version 1.3
|
| charArray2cells( stringArray, eolChar )
|
function charCells = charArray2cells( stringArray, eolChar )
%
% Purpose : Convert a character array to a cell array
%
% Author : Matther Harker and Paul O'Leary
% Date : 29. Jan 2013
% Version : 1.0
%
% (c) 2013 Matther Harker and Paul O'Leary
% url: www.harkeroleary.org
% email: office@harkeroleary.org
%
% History:
% Date: Comment:
%
%
% Remove the special characters from the warning strings.
% this ino an ideal solution, but presently I do not have a better one.
% This porblem is associate with warning strings which contain special
% characters.
%
try
inds = strfind( stringArray, '}' );
if ~isempty( inds )
stringArray(inds) = ' ';
stringArray(inds + 1) = ' ';
end;
catch me
end;
%
try
inds = strfind( stringArray, '}' );
if ~isempty( inds )
stringArray(inds) = ' ';
stringArray(inds + 1) = ' ';
end;
catch me
end;
%
if ~isempty( stringArray )
inds = strfind( stringArray, eolChar );
if ~isempty( inds )
noLines = length(inds);
%
charCells = cell(noLines,1);
line = stringArray( 1:inds(1));
charCells{1} = line;
for k=2:noLines
line = stringArray( inds(k-1) + 1: inds(k));
charCells{k} = line;
end;
else
charCells = cell(1,1);
charCells{1} = stringArray;
end;
else
charCells = [];
end;
|
|
Contact us