Signal Processing Toolbox |
|
wintool
Window Design and Analysis Tool (WinTool)
Syntax
Description
wintool
opens WinTool, a graphical user interface (GUI) for designing and analyzing spectral windows. It opens with a default 64-point Hamming window.
wintool(obj1,obj2,...)
opens WinTool with the sigwin
window object(s) specified in obj1
, obj2
, etc.
Note
A related tool, wvtool , is available for displaying, annotating, or printing windows.
|
The WinTool toolbar buttons in order from left to right are Launch a new WinTool, Print, Print Preview, Full View Analysis, Zoom, Legend, and What's This Help.
wintool
has three panels:
- Window Viewer displays the time domain and frequency domain representations of the selected window(s). The currently active window is shown in bold. Three window measurements are shown below the plots.
- Leakage factor--ratio of power in the sidelobes to the total window power
- Relative sidelobe attenuation--difference in height from the mainlobe peak to the highest sidelobe peak
- Mainlobe width (-3dB)--width of the mainlobe at 3 dB below the mainlobe peak
- Window List lists the windows available for display in the Window Viewer. Highlight one or more windows to display them. The Window List buttons are:
- Add a new window--adds a default Hamming window with length 64 and symmetric sampling. You can change the information for this window by applying changes made in the Current Window Information panel.
- Copy window--copies the selected window(s).
- Save to workspace--saves the selected window(s) as vector(s) to the MATLAB workspace. The name of the window in
wintool
is used as the vector name.
- Delete--removes the selected window(s) from the window list.
- Current Window Information displays information about the currently active window. The active window name is shown in the
Name
field. To make another window active, select its name from the Name
menu.
Window Parameters
Each window is defined by the parameters in the Current Window Information panel. You can change the current window's characteristics by changing its parameters and clicking Apply. The parameters of the current window are
- Name--name of the window. The name is used for the legend in the Window Viewer, in the Window List, and for the vector saved to the workspace. You can either select a name from the menu or type the desired name in the edit box.
- Type--algorithm for the window. Select the type from the menu. All windows in the Signal Processing Toolbox are available.
- MATLAB code--any valid MATLAB expression that returns a vector defining the window if
Type
= User Defined
.
- Length--number of samples.
- Parameter--additional parameter for windows that require it, such as Chebyshev, which requires you to specify the sidelobe attenuation. Note that the title "Parameter" changes to the appropriate parameter name.
- Sampling--type of sampling to use for generalized cosine windows (Hamming, Hann, and Blackman)--
Periodic
or Symmetric
. Periodic
computes a length n+1
window and returns the first n
points, and Symmetric
computes and returns the n
points specified in Length
.
WinTool Menus
In addition to the usual menus items, wintool
contains these wintool
-specific menu commands:
File menu:
- Export--exports window coefficent vectors or
sigwin
window objects to the MATLAB workspace, a text file, or a MAT-file.
In the Window List in WinTool, highlight the window(s) you want to export and then select Export from the File menu. For exporting to the workspace or a MAT-file, specify the variable name for each window coefficient or object. To overwrite variables in the workspace, select the Overwrite variables check box.
- Full View Analysis--copies the windows shown in both plots to a separate
wvtool
figure window. This is useful for printing and annotating. This option is also available with the Full View Analysis toolbar button.
View menu:
- Time domain--select to show the time domain plot in the Window Viewer panel.
- Frequency domain--select to show the frequency domain plot in the Window Viewer panel.
- Legend--toggles the window name legend on and off. This option is also available with the Legend toolbar button.
- Analysis Parameters--controls the response plot parameters, including number of points, range, x- and y-axis units, and sampling frequency.
Tools menu:
- Zoom In--zooms in along both x- and y-axes.
- Zoom X--zooms in along the x-axis only. Drag the mouse in the x direction to select the zoom area.
- Zoom Y--zooms in along the y-axis only. Drag the mouse in the y direction to select the zoom area.
- Full View--returns to full view.
See Also
window
, wvtool
| window | | wvtool | |
© 1994-2005 The MathWorks, Inc.