function p = pathdef
%PATHDEF Search path defaults.
%   PATHDEF returns a string that can be used as input to MATLABPATH
%   in order to set the path.


%   Copyright 1984-2022 The MathWorks, Inc.

% DO NOT MODIFY THIS FILE. THE LIST OF ENTRIES IS AUTOGENERATED BY THE
% INSTALLER, SAVEPATH, OR OTHER TOOLS. EDITING THE FILE MAY CAUSE THE FILE
% TO BECOME UNREADABLE TO THE PATHTOOL AND THE INSTALLER.

p = [...
%%% BEGIN ENTRIES %%%
        '<PLEASE FILL IN ONE DIRECTORY PER LINE>:',...
%%% END ENTRIES %%%
     ...
];

if startsWith(computer, 'PC') % ispc and pathsep not available
    separator = ';';
else
    separator = ':';
end

if matlab.internal.feature('mpm')
    filetimestamp = 0x0000000000000u64;
    p = [userpath separator getenv('MATLABPATH') separator p separator ...
        matlab.internal.packages.getPathForPackagesInstalledAfter(filetimestamp)];
else
    p = [userpath separator getenv('MATLABPATH') separator p];
end
