DGTtool

版本 1.0.0 (16.9 KB) 作者: Kohei Yatabe
A simple and user-friendly tool for computing STFT/DGT
151.0 次下载
更新时间 2021/6/22

DGTtool for computing STFT/DGT

A simple and user-friendly MATLAB tool for computing the short-time Fourier transform (STFT) and the discrete Gabor transform (DGT). It is designed to be easy and fast for practical use.

The following features of DGTtool might be different from the other tools:

  1. Parameters are stored inside DGTtool object for user-friendliness.
  2. All pre-computation runs only once so that repeated computation of DGT/STFT is fast.
  3. Many computations run in parallel for all channels (for multi-channel signal).
  4. Perfect reconstruction is very easily realized.
  5. Number of frequency bins can be smaller than the window length.
  6. Dual and tight windows can be computed easily.
  7. Sparse time-frequency representation (reassigned spectrogram) is implemented.
  8. Phase visualization tool (plotPhase) is implemented.
  9. STFT/DGT can be written in an operator form.

View DGTtool on File Exchange

How to Use

Download DGTtool.m and place it in the Current Folder.

1. Create DGTtool object

Create a DGTtool object F by specifying its parameters.

F = DGTtool('windowShift',500,'windowLength',1500,'FFTnum',2000,'windowName','Blackman')

(Note: This step can be done without parameters: F = DGTtool. Unspecified parameters are set to default values.)

2. Compute spectrogram

Compute a spectrogram X from a signal x.

X = F(x);

3. Convert spectrogram back to signal

Compute the signal x from its spectrogram X.

x = F.pinv(X);

4. Visualize spectrogram

Three visualization functions are implemented. A spectrogram is computed and plotted from a time-domain signal x (and sampling frequency fs, optional).

F.plot(x,fs)
F.plotPhase(x,fs)
F.plotReassign(x,fs)

Documentation

To check all functions in DGTtool, please read and run demo.m.

help DGTtool

and

doc DGTtool

provide detailed usage.

引用格式

Yatabe, Kohei. DGTtool. Zenodo, 2021, doi:10.5281/ZENODO.5010751.

查看更多格式

Kohei Yatabe (2021). DGTtool (https://github.com/KoheiYatabe/DGTtool), GitHub.

MATLAB 版本兼容性
创建方式 R2021a
与 R2020b 及更高版本兼容
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库