Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

Managing Files in MATLAB

How MATLAB Helps You Manage Files

MATLAB provides tools and functions to help you:

Making Files Accessible to MATLAB

MATLAB limits where it looks for files so it can locate them more quickly. To run or get help for an M-file, or to load a MAT-file, the file must be in one of these locations:

Similarly, files called by files you run also must be in one of these locations.

Special cases are:

By default, files provided with MathWorks products are in folders on the search path. You do not have to do anything for MATLAB to access the files. These files are in matlabroot/toolbox. To determine the location of matlabroot, run the matlabroot function.

By default, the search path also includes a folder named MATLAB where you can store files that you and other users create. To determine the location of the MATLAB folder, run the userpath function.

To access files in any other location, either:

Using the Current Folder Browser to Manage Files

The Current Folder browser is a key tool for managing files.

Open the Current Folder browser by selecting Desktop > Current Folder from the MATLAB desktop.

Use the Current Folder browser to:

More Ways to Manage Files

  


Recommended Products

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

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