Skip to Main Content Skip to Search
Product Documentation

Examples


Use this list to find examples in the documentation.

How to Develop Your Class

Develop Classes — Typical Workflow

Using Objects in Functions

Use Custom Objects in Functions

Defining MATLAB Classes

Example — Representing Structured Data
Example — Implementing Linked Lists
Example — Class for Graphing Functions
Class Derived from hgsetget
Example — Class Method as a Slider Callback
Example — Using Events to Update Graphs
A Class with Modified Indexing

Subclassing Built-In Classes

Example — A Class to Manage uint8 Data
Example — Adding Properties to a Built-In Subclass
Example — A Class to Represent Hardware

Interfaces and Abstract Classes

Example — Interface for Classes Implementing Graphs

Defining a Value Class

Example — A Polynomial Class

Designing Related Classes

Example — A Simple Class Hierarchy

Containing Other Classes

Example — Containing Assets in a Portfolio

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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