explorer.m: Quick access to the Windows Explorer

Opens the Windows Explorer for a specified directory, optionally showing the folder hierarchy

You are now following this Submission

The Windows Explorer is opened in one of two modes: either in the "Explorer from here" mode with the Folder hierarchy visible and its root at the specified directory, or in its basic mode showing only the contents of the specified directory.
To open a directory listing for the current MATLAB® directory, type:
>> explorer

To open a listing for (e.g) directory C:\temp, type:
>> explorer C:\temp

>> To open a listing for the directory containing peaks.m (provided that peaks.m is on the MATLAB path) type:
>> explorer peaks

>> To also show the folder hierarchy inside that directory type:
>> explorer peaks 1
or
>> explorer('peaks',1)

etc.

Cite As

Malcolm Wood (2026). explorer.m: Quick access to the Windows Explorer (https://www.mathworks.com/matlabcentral/fileexchange/11064-explorer-m-quick-access-to-the-windows-explorer), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: finder

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated license

1.3.0.0

Added copyright and fixed M-lint warning.

1.2.0.0

Added copyright line.

1.1.0.0

Review

1.0.0.0