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 Class for Graphing Functions

April 23rd, 2010 No Comments   Posted in Examples

Display Fully Commented Example Code

The class block is the code that starts with the classdef key word and terminates with the end key word. The following example illustrated a simple class definition that uses: 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

Syntax Reference & Specifying Attributes

April 18th, 2010 No Comments   Posted in Documents

Attribute Syntax

For a quick reference to all attributes, see Attribute Tables. Read More