Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Sample Class Implementations

MATLAB® classes showing programming patterns and techniques

Understand different workflows and approaches to class design and implementation.

MATLAB Language Syntax

classdefClass definition keywords

Topics

Create a Simple Class

This simple class introduces the basic patterns and syntax for defining a class.

Developing Classes — Typical Workflow

Classes implement your object-oriented design.

Class to Represent Structured Data

Classes enable you to define specialized data structures.

Class to Implement Linked Lists

MATLAB handle objects enable you to implement an efficient linked-list data structure.

Class to Represent Hardware

This example of a class derived from a built-in numeric class inherits useful behaviors.

Class Design for Polynomials

MATLAB enables you to define new data types using classes.

Using Heterogeneous Class Hierarchies

Heterogeneous class hierarchies enable you to form arrays of different, but related classes.

Static Data

Static data refers to data that all objects of the class share and that you can modify after creation. MATLAB supports techniques for working with static data.

Was this topic helpful?