Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

Examples


Use this list to find examples in the documentation.

Importing or Exporting Multiple Files

Processing a Sequence of Files

Import Wizard

Selecting Which Variables to Write to the Workspace
Example of M-Code Generation
Example 1 — Text Data
Example 2— Partial Text File with Row Vectors
Example 3 — Binary Data Assigned to a Structure

Importing and Exporting Text

Importing Numeric ASCII Data
Importing Numeric ASCII Data with Headers
Importing Nonnumeric ASCII Data
Reading Data in a Formatted Pattern
Reading Data Line-by-Line
Exporting a Numeric Array to an ASCII File Using save
Exporting a Numeric Array to an ASCII File Using dlmwrite
Exporting a Cell Array to a Text File
Writing to a Diary File

Importing and Exporting Spreadsheets

Reading a Specific Worksheet and Range of Data
Reading Data from All Worksheets into a Structure
Example — Importing an Excel File with Numeric Dates
Example — Writing to an XLS File

Memory Mapping

Constructing a memmapfile Object
Constructing the Object with Default Property Values
Changing Property Values
Mapping a Single Data Type
Formatting the Mapped Data to an Array
Mapping Multiple Data Types and Arrays
Repeating a Format Scheme
Example 1 — Reading a Single Data Type
Example 2 — Formatting File Data as a Matrix
Example 3 — Reading Multiple Data Types
Example 4 — Modifying Map Parameters
Writing to a Mapped File
When Memory Is Mapped in Nonstructure Format
When Memory Is Mapped in Scalar Structure Format
When Memory Is Mapped in Nonscalar Structure Format
Working with Copies of the Mapped Data
Using the disp Method
Using the get Method
Memory-Mapping Demo

  


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