Matlab Defining Classes — Syntax

April 23rd, 2010 Posted in Documents

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.

The following diagram shows the syntax of a classdef block. Only comments and blank lines can precede the classdef key word.


See the following links for examples of class definitions:

Leave a Reply

You must be logged in to post a comment.