MATLAB Function Reference    
rehash

Refresh function and file system caches

Syntax

Description

rehash performs the same refresh that is done whenever MATLAB completes a command and returns to its prompt. The rehash function rereads changed directories, refreshes the list of known classes, and, if there are any functions whose source files have changed since they were loaded into memory, rehash clears those loaded functions.

rehash path is the same as rehash, except that it unconditionally rereads all nontoolbox directories. This is exactly the same as the behavior of path(path).

rehash toolbox is the same as rehash path, except that it unconditionally rereads all directories, including all toolbox directories.

rehash pathreset is the same as rehash path, except that it also forces any shadowed functions to be replaced by any shadowing functions.

rehash toolboxreset is the same as rehash toolbox, except that it also forces any shadowed functions to be replaced by any shadowing functions. This is the same as exiting and restarting MATLAB.

rehash toolboxcache generates a new toolbox cache. To use this command, you must first enable toolbox caching on your system. You also need read and write access to the directory that holds the toolbox cache file.

See Also

path, addpath, rmpath


 refresh rem