Interactive Power Spectrum Demo, Version 2

バージョン 1.2.0.0 (119 KB) 作成者: Tom O'Haver
Interactive signal generator with power spectrum display and sound output
ダウンロード: 5.7K
更新 2011/5/1

ライセンスの表示

Digital signal generator (simulator) 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.

The 10 pre-programmed signals are:

Sine wave of frequency f1 (Hz) and phase f2;

Sine wave burst of frequency f1 (Hz) and duration f2;

Square wave of frequency f1 (Hz) and phase f2;

Sawtooth wave of frequency f1(Hz);

440 Hz carrier amplitude modulated by sine wave of frequency f1 (Hz) and amplitude f2;

440 Hz carrier frequency modulated by sine wave of frequency f1 (Hz) and amplitude f2;

Sine wave of frequency f1 (Hz) modulated by Gaussian pulse of width f2;

Random white noise;

Sine wave of frequency f1 (Hz) and amplitude f2 plus random white noise;

Sine wave sweep from 0 to f1 (Hz).

See http://terpconnect.umd.edu/~toh/spectrum/HarmonicAnalysis.html

T. C. O'Haver (toh@umd.edu), version 1.1, May, 2007

引用

Tom O'Haver (2024). Interactive Power Spectrum Demo, Version 2 (https://www.mathworks.com/matlabcentral/fileexchange/14951-interactive-power-spectrum-demo-version-2), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R13
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersFourier Analysis and Filtering についてさらに検索
謝辞

ヒントを与えたファイル: iPower: Interactive Power Spectrum Demonstrator, Version 2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

Expanded the description

1.1.0.0

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

1.0.0.0

Enhancements