Main Content

La traducción de esta página está obsoleta. Haga clic aquí para ver la última versión en inglés.

Implementaciones de clases de muestra

Clases de MATLAB® que muestran patrones y técnicas de programación

Entienda los diferentes flujos de trabajo y los distintos enfoques para el diseño y la implementación de las clases.

Sintaxis del lenguaje de MATLAB

classdefClass definition keywords


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.

Representing Structured Data with Classes

Classes enable you to define specialized data structures.

Implementing Linked Lists with Classes

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

Representing Hardware with Classes

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

Representing Polynomials with Classes

MATLAB enables you to define new data types using classes.

A Class Hierarchy for Heterogeneous Arrays

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.