Class Wizard

Class Wizard

For access to this article, please select a purchase option:

Buy chapter PDF
(plus tax if applicable)
Buy Knowledge Pack
10 chapters for £75.00
(plus taxes if applicable)

IET members benefit from discounts to all IET publications and free access to E&T Magazine. If you are an IET member, log in to your account and the discounts will automatically be applied.

Learn more about IET membership 

Recommend Title Publication to library

You must fill out fields marked with: *

Librarian details
Your details
Why are you recommending this title?
Select reason:
A Guide to MATLAB® Object-Oriented Programming — Recommend this title to your library

Thank you

Your recommendation has been sent to your librarian.

This paper introduces an automated code-generation tool that simplifies group-of-eight development for MATLAB classes. Using the tool, you can define a collection of public and private member variables along with an associated collection of public and private member functions. The tool will even give you a head start on class tailoring by generating a function template for public functions and helpers. The template includes the function definition along with reasonably complete header comments. This is convenient because it gives variable names and comment headers a consistent form with shared comments across all members of the class. The automation tool is called class wizard.m. The Class Wizard tool uses a graphical interface entirely developed using MATLAB's standard development tools. Dialog screens and callback functions were developed using Guide* and MATLAB 7.0. In addition, all of the code in class_wizard.m is native MATLAB.

Chapter Contents:

  • 17.1 File Dependencies
  • 17.2 Data-Entry Dialog Boxes
  • 17.2.1 Main Class Wizard Dialog
  • Header Information Dialog
  • Parents ... Dialog
  • Private Variable ... Dialog
  • Concealed Variables ... Dialog
  • Public Variables ... Dialog
  • Constructors ... Dialog
  • More ... Dialog
  • Static Variables ... Dialog
  • Private Functions ... Dialog
  • Public Functions ... Dialog
  • File Menu
  • Data Menu
  • Build Class Files Button
  • 17.3 Summary
  • 17.4 Independent Investigations

Inspec keywords: object-oriented programming; graphical user interfaces

Other keywords: function template; class wizard.m function; MATLAB 7.0; Class Wizard tool; private member variable; callback function; public member variable; Matlab classes; function definition; graphical interface; private member function; header comment; dialog screen; Guide; code-generation tool; public member function

Subjects: Object-oriented programming; Graphical user interfaces

Preview this chapter:
Zoom in

Class Wizard, Page 1 of 2

| /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch17-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch17-2.gif

Related content

This is a required field
Please enter a valid email address