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.
Class Wizard, Page 1 of 2
< Previous page Next page > /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch17-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch17-2.gif