Example of Class Definition Syntax

April 20th, 2010 No Comments   Posted in Examples

Example of Class Definition Syntax

The following code shows the syntax of a typical class definition. This example is not a functioning class because it references functions that it does not implement. The purpose of this section is to illustrate various syntactic constructions. 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