Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

Introduction to Managing Files in MATLAB

Ways to Manage MATLAB Files

MATLAB functions and desktop tools help you:

For a broad introduction, see the Managing Files in MATLAB topic in the MATLAB Getting Started guide.

Tools for Managing Files

You can create, open, close, read, write, rename, move, and delete files and folders using MATLAB functions. For a listing of them and links to their reference pages, see File Operations.

MATLAB also provides many interactive tools for working with files. Click the name of a tool in the following table to learn more about it.

Desktop Tool

Description

Current Folder Browser

View files, perform file operations such as opening, finding files and viewing file content, and managing and tuning your files.

Find File tools

Locate files by folder, file type, size, text within them, and other criteria.

File and Folder Comparisons

View line-by-line differences between two files.

Editor

Create, edit, debug, and analyze files containing MATLAB language statements (functions and scripts), and view and edit other text files.

File Exchange

Access a repository of files, created by users for sharing with other users, at the MathWorks Web site.

Viewing and Changing the Current Folder Using the Current Folder Browser

To view and change the current folder:

Image of address bar in Current Folder browser.

Viewing and Changing the Current Folder from the Desktop Toolbar

To view or change the current folder on the desktop toolbar, use the current folder field. For example, select a previously used current folder from the history.

Image of current folder field.

Determining and Changing the Current Folder Using Functions

Use the pwd or the cd function to identify the current folder. Use the cd function to change it.

Specifying the Current Folder at Startup

To specify the current folder programmatically when MATLAB starts, see Startup Folder for the MATLAB Program.

See Also

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS