Main Content

Files Panel

Manage files and folders in MATLAB

Description

The Files panel enables you to interactively manage files and folders in MATLAB®. Use this tool to view, create, open, move, and rename files and folders in the current folder.

Files panel showing a list of files with a column for the filename and a column for the file type

Open the Files Panel

  • MATLAB Sidebar – To show or hide the Files panel, click its icon on the sidebar. To open the Files panel if its icon is not on a sidebar, click the Open more panels button and select Files.

  • MATLAB command prompt – Enter filebrowser.

  • MATLAB Toolstrip – On the Home tab, in the Environment section, click Layout. Then, select Files.

Examples

expand all

Create a new live script in the current folder.

In the Files panel, right-click in white space, and then select New > Live Script.

Files panel with the context menu open and the New > Live Script option selected

MATLAB creates and selects a live script named Untitledn.mlx in the current folder.

Enter a name for the live script and press Enter. For example, type myLiveScript and then press Enter. MATLAB renames the live script to myLiveScript.mlx

Show the Date Modified and Size columns.

In the Files panel, click the Files actions button at the top of the Files panel and select the Show > Date Modified and Show > Size options. MATLAB displays the additional columns in the Files panel.

Files panel with five columns including a Name, Size, Date Modified, Type, and Preview column

Preview the contents of the file lengthofline.m without opening it.

In the Files panel, click the Preview button next to the file lengthofline.m.

Files panel with a list of files and the file preview for the lengthofline.m file open

Programmatic Use

expand all

filebrowser opens the Files panel. If the Files panel is already open, filebrowser selects the tool.

Version History

Introduced before R2006a

expand all