23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Overview<br />

Overview<br />

This overview covers the followingtopics:<br />

• “File Types Supported by <strong>MATLAB</strong>” on page 6-3<br />

• “Other <strong>MATLAB</strong> I/O Capabilities” on page 6-5<br />

• “Functions Used in File Management” on page 6-7<br />

For more information and examples on importing and exporting data, see<br />

Technical Note 1602:<br />

http://www.mathworks.com/support/tech-notes/1600/1602.html<br />

File Types Supported by <strong>MATLAB</strong><br />

<strong>MATLAB</strong> provides many ways to load data from disk files or the clipboard<br />

into the workspace, a process called importing data. Alsotherearemany<br />

ways to save workspace variables to a disk file, a process called exporting<br />

data. Your choice of which import or export mechanism to use depends mainly<br />

on the format of the data being transferred: text, binary, or a standard format<br />

such as JPEG.<br />

Note For unsupported high-level function data formats, you can use the<br />

<strong>MATLAB</strong> low-level file I/O functions if you know how the binary data is<br />

formatted in the file. See “Using Low-Level File I/O Functions” on page 6-103<br />

for more information.<br />

<strong>MATLAB</strong> has built-in capabilities to import and export the following types<br />

of data files:<br />

• “Binary Data from a <strong>MATLAB</strong> Session” on page 6-4<br />

• “Text Data” on page 6-4<br />

• “Graphics Files” on page 6-4<br />

• “Audio and Audio/Video Data” on page 6-4<br />

• “Spreadsheets” on page 6-5<br />

6-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!