https://github.com/Data2Dynamics/d2d
Tip revision: 83d6eedd5f6c33ae94dbce6c4e620d2f1bb57b1f authored by Joep Vanlier on 09 April 2015, 08:41:55 UTC
Forgot to update C version number
Forgot to update C version number
Tip revision: 83d6eed
arCreateProject.m
% create D2D file structure and template .def files
function arCreateProject
name = input('enter new project name: ', 's');
if(~isempty(name))
path = ['./' name];
if(exist(path, 'dir'))
fprintf('folder %s already exists!\n', path);
else
mkdir(path)
cd(path)
mkdir('Models');
cd('Models');
copyfile(which('model_template.def'),'./model_template.def');
cd ..
mkdir('Data');
cd('Data');
copyfile(which('data_template.def'),'./data_template.def');
copyfile(which('data_template.xls'),'./data_template.xls');
cd ..
fid = fopen('./Setup.m' , 'W');
fprintf(fid, 'arInit;\n');
fprintf(fid, 'arLoadModel(''model_template'');\n');
fprintf(fid, 'arLoadData(''data_template'');\n');
fprintf(fid, 'arCompileAll;\n');
fclose(fid);
end
end