Programming Previous page   Next Page

MATLAB Classes

All MATLAB data types are implemented as object-oriented classes. You can add data types of your own to your MATLAB environment by creating additional classes. These user-defined classes define the structure of your new data type, and the M-file functions, or methods, that you write for each class define the behavior for that data type.

These methods can also define the way various MATLAB operators, including arithmetic operations, subscript referencing, and concatenation, apply to the new data types. For example, a class called polynomial might redefine the addition operator (+) so that it correctly performs the operation of addition on polynomials.

With MATLAB classes you can

Read more about MATLAB classes in Classes and Objects.


Previous page  Function Handles Java Classes Next page

© 1994-2005 The MathWorks, Inc.