MATLAB Object-Oriented Programming

(Joyce) #1
listener - event.LISTENER Listener object
proplistener - event.PROPLISTENER Listener object for property events

You can also use the what command:

what event

Classes in directory Y:xxx\matlab\toolbox\matlab\lang\+event

EventData PropertyEvent listener proplistener

Internal Packages


MathWorks® reserves the use of packages named internal for utility functions used by
internal MATLAB code. Functions that belong to an internal package are intended for
MathWorks use only. Using functions or classes that belong to an internal package is
discouraged. These functions and classes are not guaranteed to work in a consistent
manner from one release to the next. Any of these functions and classes might be
removed from the MATLAB software in any subsequent release without notice and
without documentation in the product release notes.

Referencing Package Members Within Packages


All references to packages, functions, and classes in the package must use the package
name prefix, unless you import the package. (See “Import Classes” on page 6-30.) For
example, call this package function:

+mypack/pkfcn.m

With this syntax:

z = mypack.pkfcn(x,y);

Definitions do not use the package prefix. For example, the function definition line of the
pkfcn.m function would include only the function name:

function z = pkfcn(x,y)

Define a package class with only the class name:

classdef myClass

but call it with the package prefix:

6 Defining and Organizing Classes

Free download pdf