You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mtexPoleFigurePath.m
    path of file: ./repos/mtex/tools/pathes
    
    the code of the file until where you have to start completion: function p = mtexPoleFigurePath
% returns the default path to PoleFigure data files
%
% Syntax
%   mtexPoleFigurePath 
%   getMTEXpref('PoleFigurePath') % long form of mtexPoleFigurePath
%   setMTEXpref('PoleFigurePath',path) % change the path to Pole Figure files
%
% See also
% mtexDataPath mtexCifPath mtexEBSDPath mtexPoleFigurePath mtexODFPath
% mtexTensorPath

DataPath = getMTEXpref('PoleFigurePath');

    
function p = mtexPoleFigurePath
% returns the default path to PoleFigure data files
%
% Syntax
%   mtexPoleFigurePath 
%   getMTEXpref('PoleFigurePath') % long form of mtexPoleFigurePath
%   setMTEXpref('PoleFigurePath',path) % change the path to Pole Figure files
%
% See also
% mtexDataPath mtexCifPath mtexEBSDPath mtexPoleFigurePath mtexODFPath
% mtexTensorPath

DataPath = getMTEXpref('PoleFigurePath');

if exist(DataPath,'dir')
  p = DataPath;
else
  error('Data package not installed!');
end