Main Content

Window Designer

Design and analyze spectral windows

Description

TheWindow Designerapp enables you to design and analyze spectral windows. Using this app, you can:

  • Display the time-domain and frequency-domain representations of one or more windows.

  • Study how the behavior of a window changes as a function of its length and other parameters.

  • Design windows graphically and export them to the MATLAB®workspace.

Open the Window Designer App

  • MATLAB Toolstrip: On theAppstab, underSignal Processing and Communications, click the app icon.

  • MATLAB command prompt: EnterwindowDesigner.

Examples

expand all

UseWindow Designerto specify a Bohman window of length 128 and export it to the workspace.

  1. Create a Bohman window.

    • From theTypelist, selectBohman.

    • UnderLength, enter128.

    • UnderName, enterbohwin.

  2. ClickApply. TheWindow Viewerbox shows the window in the time and frequency domains.

  3. ClickSave to workspace. In the command line, you see this message:

    bohwin has been exported to the workspace.

  4. Verify that the new window is present in the workspace.

    whosbohwin
    Name Size Bytes Class Attributes bohwin 128x1 1024 double

UseWindow Designerto see how the behavior of a Kaiser window depends on the window length and the shape parameter,β.

  1. Create a Kaiser window.

    • From theTypelist, selectKaiser.

    • UnderLength, enter20.

    • UnderBeta, enter0.

    • UnderName, enterkaiser0.

  2. ClickApply. TheWindow Viewerbox shows the window in the time and frequency domains.

  3. ClickAdd a new window. Create a Kaiser window of length20withBetaequal to3. Name the windowkaiser3and clickApply.

  4. ClickCopy windowto create a third Kaiser window,kaiser6, withBetaequal to6. ClickApply.

  5. UnderWindow Listselect the three windows.

  6. Selectkaiser0from theName强调在列表Window Viewerplots. SetLengthto10andBetato6. ClickApply.

  7. Selectkaiser3from theNamelist. LeaveLengthset to20and setBetato6. ClickApply.

  8. Selectkaiser6from theNamelist. LeaveBetaset to6and setLengthto40. ClickApply.

  9. Selectkaiser3from theNamelist. Click theTurn Legend Onbutton.

UseWindow Designerto visualize the sidelobes of the default 64-sample Hamming window.

  1. In theViewmenu, clearTime domainand clickAnalysis Parameters.

  2. In the dialog box, specify these parameters:

    • UnderNumber of points, enter8192.

    • SetFrequency UnitstoHz.

    • SetSampling Frequencyto500Hz

    • SelectNormalize Magnitude.

  3. ClickOKto close the dialog box. Click theZoom X-Axisbutton. Zoom into the region between 10 Hz and 35 Hz to view the window’s first two sidelobes in detail.

Related Examples

See Also

Apps

Tools

Introduced before R2006a