| Reading a Mapped File The most commonly used property of the memmapf ile class is the Data property, l! is through this property of the memory-map object that MATLAB provides all read and write access to the contents of the mapped file. The actual mapping of a file to the MAT LAI! address space does not take place when you construct a memmapf ile object. A memory map, based on the information currently stored in the mapped object, is generated the first time you reference or modify the Data property for that object. After you map a file to memory, you can read the contents of that file using the same MATLAB statements used to read variables from the MATLAB workspace. By accessing the Data property of the memory map object, the contents of the mapped file appear as if they were an array in the currently active workspace. You simply index into this array lo read the desired data from the file. This section envoi's the following' topics: • "Improving Performance" on page 6-44 • "Example 1 — Reading a Single Data Type" on page 6-44 " "Example 2 — Formatting File Data as a Matrix" on page 6-45 • "Example 3 — Reading Multiple Data Types" on page 6-46 |