dynare/matlab/CheckPath.m

9 lines
179 B
Matlab

function DirectoryName = CheckPath(type)
% 06-03-2005
global M_
DirectoryName = [ M_.dname '\' type ];
if ~isdir(DirectoryName)
system([ 'md ' DirectoryName]);
end