SDOFit is designed as a "command-driven" program. That is, almost all of the functionality of the GUI can also be accomplished from the MATLAB Command Window. For example, to set the Residuals Order in the Compute Poles task, the user could enter the value 5 in the edit box, or could issue the following command at the MATLAB prompt
>> sdofit(happ,'setResiduals',5)
where happ is the handle to the SDOFit application figure, which is the first number displayed in the upper left corner of the figure title bar (the second number is the figure number of the AFPoly application that invoked SDOFit). The figure handle is required for almost all commands to specify to which instance of the application the command is directed.
There is extensive command line help which can be accessed by entering
>> sdofit help
in the MATLAB Command Window. In addition, there are a number of query commands for retrieving data and information from SDOFit. The SDOFit commands can, of course, also be written in an m-file script or function to create macros.
Use sdofit(happ,'echo','on') to turn on command syntax echoing. Then, the syntax of the SDOFit commands corresponding to actions on the GUI (e.g., selecting from a menu, entering into an edit box, or pushing a button on the tool bar) will be displayed to the MATLAB Command Window. This is intended to show the commands for invoking the same action from the GUI. These echoed commands can be reused in the MATLAB Command Window, or copied into an m-file and modified as necessary.