iPower: Interactive Power Spectrum Demonstrator, Version 2

版本 1.6.0.0 (4.5 KB) 作者: Tom O'Haver
Keyboard-controlled self-contained interactive power spectrum demonstrator with sound output.
826.0 次下载
更新 2011/10/31

查看许可证

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

引用格式

Tom O'Haver (2026). iPower: Interactive Power Spectrum Demonstrator, Version 2 (https://ww2.mathworks.cn/matlabcentral/fileexchange/31462-ipower-interactive-power-spectrum-demonstrator-version-2), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Fourier Analysis and Filtering 的更多信息
社区
版本 已发布 发行说明
1.6.0.0

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.0.0

Modified description

1.2.0.0

Corrected typos in description; added tags.

1.1.0.0

Expanded description

1.0.0.0