Commit a7f8dccc authored by Jesse Heckman's avatar Jesse Heckman

updated toolbox initialization

parent d8c1b0aa
......@@ -36,6 +36,7 @@ function pb_initializetoolbox()
disp(' - writing startup.m');
startup;
pb_datadir; % select your data path
cd(cdp);
clc; disp(['ProgrammeerBeerToolbox was succesfully initialized...' newline])
end
......
/Users/jjheckman/Documents/Data
\ No newline at end of file
function path = pb_datadir(varargin)
% PB_DATADIR()
%
% PB_DATADIR() ...
%
% See also ...
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
%pb_keyval(,varargin,);
fn = [pb_userpath 'utilities/system/initialize/init/datadir.txt'];
if ~exist(fn,'file'); fopen(fn,'wt+'); end
text = fileread(fn);
if ~any(text)
question = 'Select your data directory';
disp(question);
text = pb_getdir('title',question);
fid = fopen(fn,'wt+');
fwrite(fid,text);
fclose(fid);
end
path = [pb_keyval('path',varargin,text) filesep];
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
% Part of Programmeer Beer Toolbox (PBToolbox) %
% Written by: Jesse J. Heckman (2018) %
% %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment