Implementing a Set/Get Interface for Properties

April 24th, 2010 No Comments   Posted in Documents

The Standard Set/Get Interface

The MATLAB Handle Graphics system implements an interface based on set and get methods. These methods enable you to set or query the value of graphics object properties. The hgsetget subclass of the handle class provides implementations of these methods that your class can inherit to provide the same set and get functionality. Read More

Finding Handle Objects and Properties

April 24th, 2010 No Comments   Posted in Documents

Finding Handle Objects

The findobj method enables you to locate handle objects that meet certain conditions. Read More

Specifying Class Precedence

April 23rd, 2010 No Comments   Posted in Documents

InferiorClasses Attribute

You can specify the relative precedence of user-defined classes using the class InferiorClasses attribute. Assign a cell array of class names (represented as meta.class objects) to this attribute to specify classes that are inferior to the class you are defining. For example, the following classdef declares that myClass is dominant over class1 and class2. Read More

Scoping Classes with Packages

April 23rd, 2010 No Comments   Posted in Documents

Package Folders

Packages are special folders that can contain class folders, function and class definition files, and other packages. Packages define a scope (sometimes called a namespace) for the contents of the package folder. This means function and class names need to be unique only within the package. Using a package provides a means to organize classes and functions and to select names for these components that other packages can reuse. Read More

Matlab Defining Classes — Syntax

April 23rd, 2010 No Comments   Posted in Documents

classdef Syntax

Class definitions are blocks of code that are delineated by the classdef keyword at the beginning and the end keyword at the end. Files can contain only one classes definition. Read More

Matlab Class Overview

April 23rd, 2010 No Comments   Posted in Documents

MATLAB User-Defined Classes

A MATLAB class definition is a template whose purpose is to provide a description of all the elements that are common to all instances of the class. Class members are the properties, methods, and events that define the class. Read More