Chapman and Hall/CRC
384 pages | 70 B/W Illus.
A Guide to MATLAB Object-Oriented Programming is the first book to deliver broad coverage of the documented and undocumented object-oriented features of MATLAB®. Unlike the typical approach of other resources, this guide explains why each feature is important, demonstrates how each feature is used, and promotes an understanding of the interactions between features.
Assuming an intermediate level of MATLAB programming knowledge, the book not only concentrates on MATLAB coding techniques but also discusses topics critical to general software development. It introduces fundamentals first before integrating these concepts into example applications. In the first section, the book discusses eight basic functions: constructor, subsref, subsasgn, display, struct, fieldnames, get, and set. Building on the previous section, it explores inheritance topics and presents the Class Wizard, a powerful MATLAB class generation tool. The final section delves into advanced strategies, including containers, static variables, and function fronts.
With more than 20 years of experience designing and implementing object-oriented software, the expert author has developed an accessible and comprehensive book that aids readers in creating effective object-oriented software using MATLAB.
Group of Eight
Meeting MATLAB’s Requirements
Member Variables and Member Functions
Changing the Rules … in Appearance Only
Displaying an Object’s State
Simplify Using get, set, fieldnames, and struct
Drawing a Shape
Building a Hierarchy
Constructing Simple Hierarchies with Inheritance
Object Arrays with Inheritance
Child Class Members
Constructing Simple Hierarchies with Composition
General Assignment and Mutator Helper Functions
Class Wizard Versions of the Shape Hierarchy
Composition and a Simple Container Class
Static Member Data and Singleton Objects
Dot Functions and Functors
Protected Member Variables and Functions
Potpourri for $100