MATLAB Report Generator    

Creating Another Attribute

Create another attribute called AxesColor, which lets the user choose one of four colors for the axes: white, green, red and blue. The default color will be white. The name of the attribute, as is appears in the Setup File Editor, will be Color of Axes.

To do this task, add the following lines of code to getinfo.m (comments are preceded by `%' and are optional).

Note that out.attx.AxesColor.UIcontrol and out.attx.AxesColor.Type are not specified here. A default UI control and data type are used, according to the default value.

Changing a Previously Created Attribute

You can change a field for any attribute that you create by editing the getinfo.m.

The slider created for NumLines has a range of -inf to inf.

A slider by default has a range of: [-inf +inf]; it guesses about the range. Change the slider range to [1 10] (minimum and maximum number of lines).


  Creating a New Attribute Changing the Outline String