跳至內容

File:STFT colored spectrogram 25ms.png

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書
    原始檔案 (560 × 420 像素,檔案大小:9 KB,MIME 類型:image/png)


    摘要

    描述

    This picture is one of the four spectrograms I have created of the following signal:

    x(t)={cos⁡(2π10t);0≤t<5scos⁡(2π25t);5≤t<10scos⁡(2π50t);10≤t<15scos⁡(2π100t);15≤t<20s
    sampled at 400 Hz. I have created this picture and all the other three spectrograms with the following Matlab code, that is based on my
    stft
    
    script that you can find at User:Alejo2083/Stft script:
    clear all;
    
    %sampling frequency
    fc=400;
    %duration of the signal
    T=20;
    %zero padding factor
    my_zero=10;
    
    %generate the signal
    t=linspace(0,T,fc*T);
    x=zeros(1,length(t));
    %thresholds
    th1=0.25*T*fc;
    th2=0.5*T*fc;
    th3=0.75*T*fc;
    th4=T*fc;
    x(1:th1)=cos(2*pi*10*t(1:th1));
    x((th1+1):th2)=cos(2*pi*25*t((th1+1):th2));
    x((th2+1):th3)=cos(2*pi*50*t((th2+1):th3));
    x((th3+1):th4)=cos(2*pi*100*t((th3+1):th4));
    
    %calculate and show the spectrograms
    [spectrogram, axisf, axist]=stft(x,10,1,fc,'blackman',my_zero);
    spectrogram=spectrogram/max(spectrogram(:));
    figure,imagesc(axist,axisf,spectrogram),
    title('Spectrogram with T = 25 ms'),
    ylabel('frequency [Hz]'),
    xlabel('time [s]'), 
    colorbar;
    
    [spectrogram, axisf, axist]=stft(x,50,1,fc,'blackman',my_zero);
    spectrogram=spectrogram/max(spectrogram(:));
    figure,imagesc(axist,axisf,spectrogram),
    title('Spectrogram with T = 125 ms'),
    ylabel('frequency [Hz]'),
    xlabel('time [s]'), 
    colorbar;
    
    [spectrogram, axisf, axist]=stft(x,150,1,fc,'blackman',my_zero);
    spectrogram=spectrogram/max(spectrogram(:));
    figure,imagesc(axist,axisf,spectrogram),
    title('Spectrogram with T = 375 ms'),
    ylabel('frequency [Hz]'),
    xlabel('time [s]'), 
    colorbar;
    
    [spectrogram, axisf, axist]=stft(x,400,1,fc,'blackman',my_zero);
    spectrogram=spectrogram/max(spectrogram(:));
    figure,imagesc(axist,axisf,spectrogram),
    title('Spectrogram with T = 1000 ms'),
    ylabel('frequency [Hz]'),
    xlabel('time [s]'), 
    colorbar;
    
    Feel free to improve the code, to speed it up or just make it clearer.
    日期
    來源 自己的作品
    作者 Alessio Damato
    其他版本 see below
    The four spectrograms
    25 ms window
    125 ms window
    375 ms window
    1000 ms window

    授權條款

    我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
    GNU head 已授權您依據自由軟體基金會發行的無固定段落、封面文字和封底文字GNU自由文件授權條款1.2版或任意後續版本,對本檔進行複製、傳播和/或修改。該協議的副本列在GNU自由文件授權條款中。
    w:zh:共享創意
    姓名標示 相同方式分享
    此檔案採用創用CC 姓名標示-相同方式分享 3.0 未在地化版本、2.5 通用版、2.0 通用版以及1.0 通用版授權條款。
    您可以自由:
    • 分享 – 複製、發佈和傳播本作品
    • 重新修改 – 創作演繹作品
    惟需遵照下列條件:
    • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
    • 相同方式分享 – 若要根據本素材進行再混合、轉換或創作,則必須以與原作相同或相容的授權來發布您的作品。
    您可以選擇您需要的授權條款。

    說明

    添加單行說明來描述出檔案所代表的內容

    在此檔案描寫的項目

    描繪內容

    沒有維基數據項目的某些值

    檔案來源 中文 (臺灣) (已轉換拼寫)

    上傳者的原創作品 繁體中文 (已轉換拼寫)

    檔案歷史

    點選某个日期/時間檢視對應時刻的檔案。

    日期/時間縮⁠圖大小用戶備⁠註
    目前2007年9月18日 (二) 08:11於 2007年9月18日 (二) 08:11 版本的縮圖560 × 420​(9 KB)Alejo2083{{Information |Description=working... |Source=self-made |Date=September 2007 |Author= ~~~ |other_versions= }}

    下列頁面有用到此檔案:

    全域檔案使用狀況

    以下其他wiki使用了這個檔案: