Mu Analysis and Synthesis Toolbox | ![]() ![]() |
Provide an interactive mouse-based log-log sketch and fitting tool
Syntax
Description
drawmag
interactively uses the mouse in the plot window to create a VARYING matrix pts
and a stable, minimum-phase SYSTEM sysout
, which approximately fits, in magnitude, the frequency VARYING matrix in pts
.
sysout |
SYSTEM matrix fitting pts . |
pts |
VARYING matrix 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:
r
removes the point with frequency nearest that of the crosshairs.
0-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. Windowing may be called 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. Caution should be exercised when using this option, as it can wreak havoc on the program if variables are changed.
See Also
axis
, ginput
, magfitlp
, musynfit
, vplot
![]() | dkitgui | dypert, sisorat | ![]() |