| MATLAB Function Reference | ![]() |
Refresh function and file system caches
Syntax
rehash rehashpathrehashtoolboxrehashpathresetrehashtoolboxresetrehashtoolboxcache
Description
performs the same refresh that is done whenever MATLAB completes a command and returns to its prompt. The rehash
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 is the same as path
rehash, except that it unconditionally rereads all nontoolbox directories. This is exactly the same as the behavior of path(path).
rehash is the same as toolbox
rehash path, except that it unconditionally rereads all directories, including all toolbox directories.
rehash is the same as pathreset
rehash path, except that it also forces any shadowed functions to be replaced by any shadowing functions.
rehash is the same as toolboxreset
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 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.toolboxcache
See Also
| refresh | rem | ![]() |