Home > examples > run_all_examples.m

run_all_examples

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 clear all; %#ok<CLALL>
0002 close all;
0003 clc;
0004 
0005 list = dir('*.m');
0006 
0007 issues = {};
0008 
0009 for k = 1 : numel(list)
0010     s = list(k).name;
0011     s = s(1:end-2); % remove '.m'
0012     switch s
0013         case mfilename() % don't run yourself
0014         case 'positive_definite_karcher_mean' % old name of another example
0015         otherwise
0016             try
0017                 eval([s, ';']);
0018             catch
0019                 issues{end+1} = s; %#ok<SAGROW>
0020             end
0021     end
0022 end
0023 
0024 if ~isempty(issues)
0025     warning('There were issues running the following scripts:');
0026     disp(issues);
0027 else
0028     fprintf('\n\nNo particular issues detected.\n');
0029 end

Generated on Fri 30-Sep-2022 13:18:25 by m2html © 2005