Signal Toolkit - wvtool


Function File: wvtool (w, …)
Function File: wvtool (…, options)
Function File: wvtool (title, …)
Function File: h = wvtool (…)

Plot time and frequency domain graphs of each vector of window function coefficients given in w and any following arguments. Given vectors must have the same length.

The graphs are: (1) Time domain, (2) Frequency domain (initial bins), and (3) Frequency domain (all bins). A subset of these can be selected by including their numbers as above as characters within the string argument options; for example, ‘13’ selects only graphs (1) and (3).

By default, the x-axis of graph (3) is logarithmic, to facilitate assessment of side-lobe roll-off (SLR) rate. Including an ‘l’ character in options changes to a linear x-axis.

The layout of the graphs is set to horizontal if options contains an ‘h’ character.

Any other characters in options are passed to the plot command for graph (1) as its fmt argument (for an example, see demo number 3).

A figure title can be supplied as the first given argument; alternatively the returned handle h provides a more general means to modify the figure.

Measurements made on the window(s) are reported in the graph legends (subject to graph selection per above) and in the console output.

To convert reported bin positions to bandwidth (in bins), multiply by 2. To convert bandwidth in bins to normalized bandwidth, divide by the window-length.