Programming Previous page   Next Page

Methods of the memmapfile Class

You can use the following methods on objects constructed from the memmapfile class.

Syntax
Description
disp
Displays properties of the object. The display does not include the object's name.
get(obj)
Returns the values of all properties of the memmapfile object in a structure array.
get(obj, property)
Returns the value of the specified property. property can be a string or cell array of strings, each containing a property name.

Using the disp Method

Use the disp method to display all properties of a memmapfile object. The text displayed includes only the property value, and not the object name or the MATLAB response string, ans =.

Show all properties for object m:

Using the get Method

You can use the get method of the memmapfile class to return information on any or all of the object's properties. Specify one or more property names to get the values of specific properties.

This example returns the values of the offset, repeat, and format properties for a memmapfile object. Start by constructing the object:

Use the get method to return the specified property values in a 1-by-3 cell array, m_props:

You can also choose to use the objname.property syntax:

To return the values for all properties with get, pass just the object name:


Previous page  Writing to a Mapped File Deleting a Memory Map Next page

© 1994-2005 The MathWorks, Inc.