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

Matlab Syntax Reference & Specifying Methods and Functions

April 18th, 2010 No Comments   Posted in Documents

The Methods Block

Define methods as MATLAB functions within a methods block, inside the classdef block. The constructor method has the same name as the class and returns an object. You can assign values to properties in the class constructor. Terminate all method functions with an end statement. Read More