Refresh unit database files on MATLAB path
rehashUnitDBs
refreshes unit database files on the MATLAB® path. To load a custom unit database, use this function in conjunction with
the createCustomDBFromExcel function.
The rehashUnitDBs
function:
Clears all previously loaded custom units in memory.
Resets the set of supported units to the built-in set of units.
Looks for database files with the extension .slunitdb.mldtax
on
the MATLAB path and loads those databases.
Issues warnings if units with the same names are loaded. If units have several definitions with the same name in different databases, by default the function tries to use the definition in a built-in units databases. If the unit is not defined in a built-in database, the function uses the definition in the database highest on the MATLAB path.
To see the supported spreadsheet format, see Custom Units Spreadsheet Format.