How to plot spectrogram in actual time period?

13 ビュー (過去 30 日間)
Jan Ali
Jan Ali 2021 年 5 月 1 日
コメント済み: Mathieu NOE 2021 年 5 月 10 日
Does anyone know how to plot actual time interval in Spectrogram using STFT?
I want to analyze an event in a signal in a certain time span, but using the spectrogram built in function plots in Spectrogram from 0, while I want it to be plotted from for exp. 5083s time span as seen below. I appreciate if anyone can help me with this.
  9 件のコメント
Jan Ali
Jan Ali 2021 年 5 月 7 日
Thanks Mathieu for the support. However, I don't know how to use the script/function for the colorbar.
The function [fft_specgram,freq_vector,time] = myspecgram(x, fs, 120, 0.9) provides outputs that I can plot like a signal. I appreciate if you guide me how to use it for the colorbar
Mathieu NOE
Mathieu NOE 2021 年 5 月 10 日
hello
yiu can simply add this line of code , after the plot :
colorbar('vert');

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeTime-Frequency Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by