File Exchange

image thumbnail

iPower: Interactive Power Spectrum Demonstrator, Version 2

version 1.6 (4.54 KB) by

Keyboard-controlled self-contained interactive power spectrum demonstrator with sound output.

2 Downloads

Updated

View License

Keyboard-controlled interactive power spectrum demonstrator, useful for teaching and learning about the power spectra of different types of signals and the effect of signal duration and sampling rate. Single keystrokes allow you to select the type of signal (12 different signals included), the total duration of the signal, the sampling rate, and the global variables f1 and f2 which are used in different ways in the different signals. When the Enter key is pressed, the signal (y) is sent to the Windows WAVE audio device. Press K to see a list of all the keyboard commands.
T. C. O'Haver (toh@umd.edu), Version 2, October, 2011. Added: 'Y' key cycles through 4 plot modes: linear x,y. linear x, log y; log x, linear y; and log-log. 'H' key switches between frequency and period x scale on power spectrum graph in lower window.

KEYBOARD CONTROLS:
Adjust signal duration 10% up/down......A,Z
Adjust sampling rate 10% up/down........S,X
Adjust first variable 10% up/down...... D,C
Adjust second variable 10% up/down..... F,V
Cycle through Linear/Log plot modes.......L
Switch X-axis scale of power spectrum.....H
Print keyboard commands...................K
Play signal as sound.............Enter or P

SIGNAL TYPES
` Sine wave, frequency f1 (Hz), phase f2
1 Square wave, frequency f1 (Hz), phase f2
2 Sawtooth wave, frequency Ff1(Hz)
3 Triangle wave, frequency f1 (Hz), phase f2
4 Sine wave burst of frequency f1 (Hz) and length f2 sec
5 440 Hz carrier amplitude modulated by sine wave, frequency f1 (Hz) and amplitude f2
6 440 Hz carrier frequency modulated by sine wave of frequency f1 (Hz) and amplitude f2
7 Sine wave, frequency f1 (Hz), modulated with Gaussian of width f2 sec
8 Sine wave, frequency f1 (Hz) with non-linear transfer function f2
9 Sine wave sweep from 0 to f1 (Hz)
0 Sine wave of frequency f1 (Hz) and amplitude f2 plus random white noise
- Pink (1/f) noise
= Sine wave, frequency f1 (Hz), amplitude f2 plus pink noise

Comments and Ratings (2)

ehsan

ehsan (view profile)

ehsan

ehsan (view profile)

very good

Updates

1.6

Version 2, October, 2011. Added: 'Y' key cycles through 4 plot modes: linear x,y. linear x, log y; log x, linear y; and log-log. 'H' key switches between frequency and period x scale on power spectrum graph in lower window.

1.4

Modified description

1.2

Corrected typos in description; added tags.

1.1

Expanded description

MATLAB Release
MATLAB 7.8 (R2009a)
Acknowledgements

Inspired by: Interactive Power Spectrum Demo, Version 2

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today