FUNCTION REFERENCE
prefdir
Return and create the per-user MatRust settings folder.
Return and create the per-user MatRust settings folder.
Syntax
d = prefdirMATRUST_PREFDIR overrides the location. Otherwise reuse the desktop settings folder: the parent of MATRUST_SESSION_PATH when set, or LOCALAPPDATA/MatRust. Without those settings, use XDG_CONFIG_HOME/matrust (or ~/.config/matrust) on Linux, ~/Library/Application Support/MatRust on macOS, or APPDATA/MatRust on Windows.
Example
d=tempname(tempdir); setenv('MATRUST_PREFDIR',d); p=prefdir; ok=exist(p,'dir')==7; rmdir(d); ok % 1Differences from MATLAB: MatRust uses the folder locations above, creates the folder on every query if needed, and does not accept prefdir(1). In the browser it returns ''.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.