跳转到内容

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 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。
    w:zh:知识共享
    署名 相同方式共享
    本文件采用知识共享署名-相同方式共享3.0 未本地化版本、2.5 通用、2.0 通用和1.0 通用许可协议授权。
    您可以自由地:
    • 共享 – 复制、发行并传播本作品
    • 修改 – 改编作品
    惟须遵守下列条件:
    • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
    • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
    您可以选择您需要的许可协议。

    说明

    添加一行文字以描述该文件所表现的内容

    此文件中描述的项目

    描绘内容

    创作作者 简体中文(已转写)

    某些值没有维基数据项目

    作者姓名字符串 简体中文(已转写):Alessio Damato
    维基媒体用户名 简体中文(已转写):Alejo2083

    版权状态 简体中文(已转写)

    版权所有 简体中文(已转写)

    文件来源 简体中文(已转写)

    上传者的原创作品 简体中文(已转写)

    文件历史

    点击某个日期/时间查看对应时刻的文件。

    日期/时间缩⁠略⁠图大小用户备注
    当前2007年9月18日 (二) 08:112007年9月18日 (二) 08:11版本的缩略图560 × 420​(9 KB)Alejo2083{{Information |Description=working... |Source=self-made |Date=September 2007 |Author= ~~~ |other_versions= }}

    以下页面使用本文件:

    全域文件用途

    以下其他wiki使用此文件: