19 lines
376 B
Matlab

function output = basedir(obj)
%DATADIR Get the pricklypear base directory
% directdir(PP)
%
% See also pricklypear/datadir, pricklypear/modeldir
fn = mfilename('fullpath');
fn = fileparts(fn);
fn = fileparts(fn);
fn = fullfile(fn, 'pp_dir.txt');
fid = fopen(fn,'r');
txt = fscanf(fid, '%s');
fclose(fid);
output = txt;
end