Posts Tagged ‘Determining Which Method Is Invoked’
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
Tags: cell, char, Class Precedence and MATLAB Path, Classesdouble, Concatenating Objects of Different Classes, Determining Which Method Is Invoked, function_handle, Inferior, InferiorClasses, int16, int32, int64, int8, logical, matlab, single, struct, uint16, uint32, uint64, uint8, Working with Meta-Classes
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