| Robust Control Toolbox | |
| Provide feedback about this page |
Mouse-based tool for sketching and fitting
Syntax
Description
drawmag
interactively uses the mouse in the plot window to create pts (the frd object) and sysout (a stable minimum-phase ss object), which approximately fits the frequency response (magnitude) in pts.
sysout |
Stable, minimum-phase ss object that approximately fits, in magnitude, the pts data. |
pts |
Frequency response of points. |
While drawmag is running, all interaction with the program is through the mouse and/or the keyboard. The mouse, if there is one, must be in the plot window. The program recognizes several commands:
a is the same as clicking the mouse button.
r removes the point with frequency nearest that of the crosshairs.
0 and 9 fits the existing points with a transfer function of that order. The fitting routine approximately minimizes the maximum error in a log sense. The new fit is displayed along with the points, and the most recent previous fit, if it exists.
w uses the crosshair location as the initial point in creating a window. Moving the crosshairs and clicking the mouse or pressing any key then gives a second point at the new crosshair location. These two points define a new window on the data, which is immediately replotted. This is useful in fine tuning parts of the data. You can call windowing repeatedly.
p simply replots the data using a window that covers all the current data points as well as whatever was specified in in. Typically used after windowing to view all the data.
k invokes the keyboard using the keyboard command. You should exercise caution when using this option, as it can wreak havoc on the program if variables are changed.
See Also
ginputGraphically input information from mouse
loglog Plotting frequency responses on log-log scale
| Provide feedback about this page |
![]() | dmplot | evallmi | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |