4.0

4.0 | 1 rating Rate this file 186 downloads (last 30 days) File Size: 119.17 KB File ID: #14951

Interactive Power Spectrum Demo, Version 2

by Tom O'Haver

 

10 May 2007 (Updated 18 Sep 2009)

Code covered by BSD License  

Interactive signal generator with power spectrum display and sound output

Download Now | Watch this File

File Information
Description

Digital signal generator (sumulator) with power spectrum display and sliders for "real time" control, useful for teaching and demonstrating the power spectra of different types of signals and the effect of signal duration and sampling rate. Version 1.1 adds sound output. The signal slider selects from 10 different signals (you can change these in RedrawSpectrum.m). The Time slider controls the total duration of signal, the Rate slider controls the sample rate, and the F1 and F2 sliders control the global variables f1 and f2 which are used in different ways in the different signals. The Sound slider has only two settings: OFF (down) and ON (up). When Sound is ON, each time a slider is moved, the signal (y) is sent to the Windows WAVE audio device. When Sound is OFF, no sound is played when a slider is moved. However, even when Sound is OFF, clicking on the Sound slider plays the signal once for each click. T. C. O'Haver (toh@umd.edu), version 1.1, May, 2007

MATLAB release MATLAB 6.5 (R13)
Zip File Content  
Other Files
license.txt,
PowerSpectrumDemo/AmpMod.bmp,
PowerSpectrumDemo/Burst.bmp,
PowerSpectrumDemo/DemoPowerSpectrum.m,
PowerSpectrumDemo/f1Slider.m,
PowerSpectrumDemo/f2Slider.m,
PowerSpectrumDemo/FreqMod.bmp,
PowerSpectrumDemo/gaussian.m,
PowerSpectrumDemo/GaussSine.bmp,
PowerSpectrumDemo/NoisySine.bmp,
PowerSpectrumDemo/Oscillationtest.m,
PowerSpectrumDemo/ReadMe.txt,
PowerSpectrumDemo/RedrawSpectrum.m,
PowerSpectrumDemo/rtslid.m,
PowerSpectrumDemo/SampleRateSlider.m,
PowerSpectrumDemo/SamplingtimeSlider.m,
PowerSpectrumDemo/SignalSlider.m,
PowerSpectrumDemo/sine.bmp,
PowerSpectrumDemo/SoundButton.m,
PowerSpectrumDemo/Square.bmp,
PowerSpectrumDemo/Sweep.bmp,
PowerSpectrumDemo/Thumbs.db,
PowerSpectrumDemo/Triangle.bmp,
PowerSpectrumDemo/Version11.GIF,
PowerSpectrumDemo/WhiteNoise.bmp
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
06 May 2008 Kartika Munir  
12 Aug 2008 Lei Qiu

good package

Please login to add a comment or rating.
Updates
16 May 2007

Enhancements

18 Sep 2009

Slider function modified by commenting out lines 337 and 373
to prevent crash on Matlab 2008 and 2009.

Tag Activity for this File
Tag Applied By Date/Time
spectral analysis Tom O'Haver 22 Oct 2008 09:12:27
power spectrum signal harmonic sampling aliasing frequency times Tom O'Haver 22 Oct 2008 09:12:27
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com