Next: Compute menu Up: Select menu Previous: Initial point list  Contents

The user functions dialog box allows you to specify and manipulate user functions. You display the dialog box by Select|User functions command in the Main window.

The dialog box has the following components :

Command

What it does

Functions list

is in the upper right corner of the dialog box. It lists all the functions you have previously defined for the current system. Each line describes one function. To select a function, double-click its name in the list. The selected function is the one you can operate on with Control buttons and Editor area.
 

Control buttons

        Add

defines a new function with label and name taken from the Input fields , the function itself taken from the Editor area.
 

        Update

update the current selected function with label taken from theInput fields, the function itself taken from the Editor area.
 

        Delete

deletes the selected function.
 

Input fields

Label

is where you enter the Label of a function before clicking Add or Update commands. Labels should be unique and should differ from the labels of standard/existing special points.
 

Name

is where you enter the name of a function before an Add command. Names must be unique.
 

Editor area

is in the middle part of the dialog box. You use it to enter or modify the body of the selected or new user function. The text may use all features of the Matlab language allowed in a function body. Name of state variables and parameters of the system are also allowed. The result of the function must be assigned to the variable res. The command must end by ';' otherwise this function will generate output during continuation runs.
 

Terminal buttons

OK

saves all user functions. This command closes the dialog box.
 

Cancel

closes the dialog box and cancels all modifications you have made since the moment the box was displayed.