www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RunTestsInWorkingFolderExample.m

    %% Run Tests in Working Folder
% Create a folder |myExample| in your current working folder, and change
% into that folder.
%
% In the |myExample| folder, create a test script, |typeTest.m|.
%
% <include>typeTest.m</include>
%%
% In the |myExample| folder, create a test script, |sizeValueTest.m|.
%
% <include>sizeValueTest.m</include>
%%
% Run all tests in the current folder.
runtests
%%
% MATLAB&reg; ran 5 tests. There are 2 passing tests from |sizeValueTest| and 3
% passing tests from |typeTest|.