image thumbnail


version (2.4 KB) by Jesse Hopkins
Convenient way to open windows explorer.


Updated 06 Nov 2009

View License

% explore
% opens explorer window to current file open in matlab editor. (if
% no file is open, then the current explorer window at current directory
% will be explored
% explore(file)
% opens explorer window to directory containing "file". This input
% can be a full-file-path, m-function name, or model name.
% explore(dir)
% opens explorer window to specified direcotry "dir". This input can
% be a full-path, relative-path, or just the name of any directory
% on the matlab path. Will open the first folder on the matlab-path
% matching the specified name.
% NOTE: You may change the executable called by explore.m. The default is
% "explorer". To change, use
% explore SetExplorerCommand <command>
% For example, to use UltraExplorer:
% explore SetExplorerComand 'UltraExplorer /p'
% Note that the path containing UltraExplorer.exe must be included
% in your Windows path environment variable.
% This setting is stored as a persistent variable, and will not be
% remembered between Matlab sessions, so this line should reside in
% your startup.m file to permanently change your explorer preference.

Cite As

Jesse Hopkins (2021). Explore (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!