FUNCTION REFERENCE

restoredefaultpath

Remove all user folders from the search path.

Remove all user folders from the search path.

Syntax

restoredefaultpath

Function lookup then searches only the current folder and builtins.

Example

addpath(tempdir); restoredefaultpath; isempty(path)   % 1

Differences from MATLAB: The default path has no toolbox folders. This command neither reads nor changes pathdef.m; the next savepath overwrites it.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.