cantera/ext/matlab_xunit/+xunit/+utils/generateDoc.m
Ray Speth bac65b26a1 Added machinery for unit testing of the Matlab toolbox
Unit tests are written using the Matlab xUnit Test Framework
2012-03-13 17:32:10 +00:00

14 lines
337 B
Matlab

function generateDoc
%generateDoc Publish the example scripts in the doc directory
% Steven L. Eddins
% Copyright 2008-2009 The MathWorks, Inc.
doc_dir = fullfile(fileparts(which('runtests')), '..', 'doc');
addpath(doc_dir);
cd(doc_dir)
mfiles = dir('*.m');
for k = 1:numel(mfiles)
publish(mfiles(k).name);
cd(doc_dir)
end