matRad_publishExamples

Purpose ^

matRad publish examples script

Synopsis ^

This is a script file.

Description ^

 matRad publish examples script

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 Copyright 2017 the matRad development team. 
 
 This file is part of the matRad project. It is subject to the license 
 terms in the LICENSE file found in the top-level directory of this 
 distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part 
 of the matRad project, including this file, may be copied, modified, 
 propagated, or distributed except according to the terms contained in the 
 LICENSE file.

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Cross-reference information ^

This function calls: This function is called by:

Source code ^

0001 % matRad publish examples script
0002 %
0003 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0004 %
0005 % Copyright 2017 the matRad development team.
0006 %
0007 % This file is part of the matRad project. It is subject to the license
0008 % terms in the LICENSE file found in the top-level directory of this
0009 % distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part
0010 % of the matRad project, including this file, may be copied, modified,
0011 % propagated, or distributed except according to the terms contained in the
0012 % LICENSE file.
0013 %
0014 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0015 
0016 %% This file will publish all examples
0017 
0018 
0019 %% clear environment
0020 clc,clear,close all;
0021 
0022 % make sure you are in the matRad root directory and have added the
0023 % exampels folder to the matlab path
0024 
0025 format     = {'pdf'}; %{'html','pdf'};
0026 matRadRoot = pwd;
0027 folderInfo = dir([matRadRoot filesep 'examples']);
0028 
0029    
0030 for ixFile = 1:size(folderInfo,1)
0031       
0032     for ixFormat = 1:numel(format)
0033         
0034         %make sure not to use auto saved files (*.asv)
0035         [pathstr,name,ext] = fileparts(folderInfo(ixFile).name);
0036         
0037        if ~folderInfo(ixFile).isdir && ~strcmp(name,mfilename) && strcmp(ext,'.m') ...
0038            
0039            save('workspace')
0040            publish(folderInfo(ixFile).name,format{ixFormat});
0041            clc,clear,close all
0042            load('workspace')
0043            
0044        end
0045     end
0046     
0047 end
0048 
0049 delete workspace.mat
0050 
0051 
0052 
0053 
0054 
0055 
0056 
0057 
0058 
0059 
0060 
0061 
0062

| Generated by m2html © 2005