Detailed Information and Examples

Rapid Access to Information

This section provides a gateway to both conceptual information and example implementations. It enables you to scan the information available for broad topics

Topic

Background Information and Discussion

Code Examples

Classes

List of all class member attributes: Attribute Tables

MATLAB® Classes for an introduction to object-oriented programming concepts.

Class Overview for an overview of classes features.

Developing Classes — Typical Workflow for a simple example

Example — Representing Structured Data

Example — Implementing Linked Lists

Example — A Polynomial Class

Example — A Simple Class Hierarchy

Example — Containing Assets in a Portfolio

Attributes

Class Attributes for a list of class attributes

 
 

Hierarchies of Classes — Concepts describes how classes can be built on other classes

Example — A Simple Class Hierarchy

 

Creating Subclasses — Syntax and Techniques

Modifying Superclass Methods and Properties

Specializing the dlnode Class

Kinds of classes

Comparing Handle and Value Classes

The Handle Base Class — a detailed description of the abstract class.

Example — Implementing Linked Lists

Properties

 

Defining Properties for an overview of what properties are and how to use them

 

Property Definition Block shows how to specify initial values

Restricting Properties to Specific Values

Attributes

Specifying Property Attributes for a list of property attributes

Dependent Properties

 Dynamic Properties — Adding Properties to an Instance

Attaching Data to the Object

Methods

 

Class Methods for an overview of methods

 

Attributes

Method Attributes for a list of method attributes

 
 

Class Constructor Methods for information about constructor methods

Simplifying the Interface with a Constructor

 

Handle Class Delete Methods

 
 

Controlling Property Access

Restricting Properties to Specific Values

 

Implementing a Set/Get Interface for Properties

 
Events
 

Events and Listeners — Concepts for an overview of how events work

Defining Events and Listeners — Syntax and Techniques for the syntax used to define events and listeners

Example — Using Events to Update Graphs for a complete example that uses events and listeners, including a property listener

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS