Get user home directory

get the user's home directory platform independent

You are now following this Submission

GETUSERDIR returns the user home directory using the registry on windows systems and using Java on non windows systems as a string

COLLABORATION:
As I am not familiar with non windows operating systems please give me information about incompatibilities - I rely on JAVA in this function

Cite As

Sven Probst (2026). Get user home directory (https://www.mathworks.com/matlabcentral/fileexchange/15885-get-user-home-directory), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0