O'Reilly logo

MATLAB For Dummies by John Paul Mueller, Jim Sizemore

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4

Starting, Storing, and Saving MATLAB Files

In This Chapter

arrow Understanding the MATLAB file structure

arrow Working with MATLAB files

arrow Storing data on disk

Computers have two kinds of storage bins: temporary memory in RAM and permanent memory on a storage device such as a hard drive. In order to make anything you create using MATLAB permanent, you must place it on the hard drive. Unfortunately, hard drives are huge, and if you want to find the data again later, you need to know where you placed the information. That’s why knowing something about the MATLAB file structure is important — because you use it to find a place to store your data and to recover that data later.

Data is stored in files, while folders are used to organize the data. To load your data into MATLAB, you must first find the right folder, open it, and then open the file. It works much the same as a filing cabinet. As long as the drawer is closed and the file folder remains inside, the data is inaccessible. Note as well that some of your data may be in the wrong format. When data formatting is a problem, you need to import the data into MATLAB so that MATLAB can make use of it. The same holds true of other applications. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required