home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 3.ddi / DEMOS.DI$ / SIG1HELP.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  1.7 KB  |  32 lines

  1. %                        INTERACTIVE SIGNAL DEMO
  2. %    
  3. %    You are seeing discrete samples of a periodic waveform (above) and the 
  4. %    absolute value of its discrete Fourier transform (DFT), obtained using
  5. %    a fast Fourier transform (FFT) algorithm (below).  
  6. %    In the lower plot, frequencies from 0 to 100 Hertz are displayed.
  7. %    The DFT at negative frequencies is a mirror image of the DFT at positive
  8. %    frequencies.  The sampling rate is 200 Hertz which means the "Nyquist
  9. %    frequency" is 100 Hertz.  The DFT at frequencies above the Nyquist 
  10. %    frequency is the same as the DFT at lower (negative) frequencies.
  11. %    Click and drag a point on the waveform displayed in the upper plot
  12. %    to move that point to a new location, thereby setting a new fundamental
  13. %    frequency and amplitude.
  14. %    Use the pop-up menu in the bottom left of the figure window to change 
  15. %    the shape of the waveform.  The possible wave shapes are sinusoidal, 
  16. %    square, and sawtooth.
  17. %    The fundamental frequency of the waveform is given in the editable
  18. %    text box in the middle of the bottom row.  You can change this
  19. %    fundamental frequency by clicking in the text box and editing
  20. %    the number there, and then pressing RETURN.  The fundamental is also 
  21. %    changed when the waveform is altered by clicking and dragging.
  22. %    If the Signal Processing Toolbox is installed, then the menu entitled
  23. %    "Window" allows you to select a window function.  This window is 
  24. %    multiplied by the time waveform prior to taking the DFT.  To display
  25. %    the current window function in another figure window, select the menu 
  26. %    item "Show window...".
  27.  
  28. %       Copyright (c) 1984-93 by The MathWorks, Inc.