zoukankan      html  css  js  c++  java
  • 时频工具箱介绍与使用

    matlab时频处理工具箱

    标签: 信号处理与分析


    1. 工具箱

    1. emd

    2. 时频分析(TFTB)

    3. 自适应时频分析tfa

    ==============================================================

    2.EMD工具箱安装方法

    1. 下载emd工具箱:地址-http://download.csdn.net/detail/makenothing/6969345 ,(免费链接:http://download.csdn.net/detail/makenothing/9734265 )下载后解压放在matlab的toolbox工作路径下package_emd文件夹。

    2. 打开matlab,选择File- Set Path- Add with Subfolders-你刚才下载的工具箱(package_emd)点进去- Save- Close。

    3. 此时选择work下package_emd文件夹作为工作路径,即是C:Program FilesMATLABR2010a oolboxpackage_emd

    4. 在Command Window里面输入mex -setup回车,问是否选择已有的编译器你选y回车,再问选择哪个编译器,你可以选择C++的那个选择相应的编号(如 2)回车,然后让你核对是否选择对了编译器等等,你输入y回车。就安装成功了

       >> mex -setup
       Please choose your compiler for building external interface (MEX) files:
        
       Would you like mex to locate installed compilers [y]/n? y
        
       Select a compiler:
       [1] Lcc-win32 C 2.4.1 in C:PROGRA~1MATLABR2010asyslcc
       [2] Microsoft Visual C++ 6.0 in C:Program FilesMicrosoft
       Visual Studio
        
       [0] None
        
       Compiler: 2
        
       Please verify your choices:
        
       Compiler: Microsoft Visual C++ 6.0
       Location: C:Program FilesMicrosoft Visual Studio
        
       Are these correct [y]/n? y
        
       Trying to update options file: C:UsersAdministratorAppDataRoamingMathWorksMATLABR2010amexopts.bat
       From template: C:PROGRA~1MATLABR2010ainwin32mexoptsmsvc60opts.bat
       Done . . .
       Warning: The MATLAB C and Fortran API has changed to support MATLAB  
       variables with more than 2^32-1 elements. In the near future
       you will be required to update your code to utilize the new
       API. You can find more information about this at:
       http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
      

    Building with the -largeArrayDims option enables the new API.
    至此,表示安装成功!!


    截止2017.1月最新版(emd-1.3)下载地址:http://download.csdn.net/detail/makenothing/9734249
    官方链接地址:https://atoms.scilab.org/toolboxes/emd_toolbox
    (可能需要FQ,如不能,上面有我上传的免费链接)

    ==============================================================

    3. 时频分析工具箱安装

    1. 首先下载工具箱,http://download.csdn.net/detail/makenothing/6969447。(免费链接:http://download.csdn.net/detail/makenothing/9734266)下载后解压放在matlab的toolbox工作路径下TFTB文件夹。
    2. 打开matlab,选择File- Set Path- Add with Subfolders-你刚才下载的工具箱(package_emd)点进去- Save- Close。
    3. 此时选择work下package_emd文件夹作为工作路径,即是C:Program FilesMATLABR2010a oolboxTFTB 。
    4. 在Command Window里面输入mex -setup回车,问是否选择已有的编译器你选y回车,再问选择哪个编译器,你可以选择C++的那个选择相应的编号(如 2)回车,然后让你核对是否选择对了编译器等等,你输入y回车。就安装成功了

        mex -setup
        Please choose your compiler for building external interface (MEX) files:
         
        Would you like mex to locate installed compilers [y]/n? y
         
        Select a compiler:
        [1] Lcc-win32 C 2.4.1 in C:PROGRA~1MATLABR2010asyslcc
        [2] Microsoft Visual C++ 6.0 in C:Program FilesMicrosoft Visual Studio
         
        [0] None
         
        Compiler: 2
         
        Please verify your choices:
         
        Compiler: Microsoft Visual C++ 6.0
        Location: C:Program FilesMicrosoft Visual Studio
         
        Are these correct [y]/n? y
         
        Trying to update options file: C:UsersAdministratorAppDataRoamingMathWorksMATLABR2010amexopts.bat
        From template: C:PROGRA~1MATLABR2010ainwin32mexoptsmsvc60opts.bat
         
        Done . . .
         
        ******************************************************
          Warning: The MATLAB C and Fortran API has changed to support MATLAB  
                   variables with more than 2^32-1 elements. In the near future
                   you will be required to update your code to utilize the new
                   API. You can find more information about this at:
                   http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
                   Building with the -largeArrayDims option enables the new API.
        ******************************************************
    

    至此,安装成功 !

    ==============================================================
    官网地址:http://download.savannah.gnu.org/releases/tftb

    ==============================================================
    (可能需要FQ,如不能,上面有我上传的免费链接)

    4. adaptive time frequency analysis

    自适应时频分析工具包及其中文手册。内核程序是在c ++中编写的,GUI是一个matlab函数。其时频分辨率远高于短时傅里叶变换。
    用法:将tfagui.m和tfagui.fig提取到matlab的存在路径中,然后将atfr.exe解压到系统路径(例如“C: winnt”)。您可以通过在matlab的命令行中输入“tfagui”来启动工具包。

    时频工具箱函数

    一、信号产生函数:

    amexpo1s 单边指数幅值调制信号
    amexpo2s 双边指数幅值调制信号
    amgauss 高斯幅值调制信号
    amrect 矩形幅值调制信号
    amtriang 三角形幅值调制信号
    fmconst 定频调制信号
    fmhyp 双曲线频率调制信号
    fmlin 线性频率调制信号
    fmodany 任意频率调制信号
    fmpar 抛物线频率调制信号
    fmpower 幂指数频率调制信号
    fmsin 正弦频率调制信号
    gdpower 能量律群延迟信号
    altes 时域Altes信号
    anaask 幅值键移信号
    anabpsk 二进制相位键移信号
    anafsk 频率键移信号
    anapulse 单位脉冲信号的解析投影
    anaqpsk 四进制相位键移信号
    anasing Lipscjitz 奇异性
    anaste 单位阶跃信号的解析投影
    atoms 基本高斯元的线性组合
    dopnoise 复多普勒任意信号
    doppler 复多普勒信号
    klauder 时域Klauder小波
    mexhat 时域墨西哥帽小波

    二、噪声产生函数

    noiseecg 解析复高斯噪声
    noiseecu 解析复单位高斯噪声
    tfrgabor Gabor表示
    tfrstft 短时傅立叶变换
    ifestar2 使用AR(2)模型的瞬时频率估计
    instfreq 瞬时频率估计
    sqrpdlay 群延迟估计

    三、模糊函数

    ambifunb 窄带模糊函数
    ambifuwb 宽带模糊函数

    四、Affine类双核线性时频处理函数

    tfrbert 单式Bertrand分布
    tfrdfla D-Flandrin分布
    tfrscalo 尺度图
    tfrspaw 平滑伪Affine类Wigner分布
    tfrunter Unterberger分布

    五、Cohen类双核线性时频处理函数

    tfrbj Born-Jordan分布
    tfrbud Butterworth分布
    tfrcw Choi-Williams分布
    tfrgrd 归一化的矩形分布
    tfrmh Margenau-Hill分布
    tfrmhs Margenau-Hill频谱分布
    tfrmmce 谱图的最小平均互熵组合
    tfrpage Page分布
    tfrwv 伪Wigner-Ville分布
    tfrri Rihaczek分布
    tfrridb 降低交叉项的分布(Bessel窗)
    tfrridbn 降低交叉项的分布(二项式窗)
    tfrridh 降低交叉项的分布(汉宁窗)
    tfrridt 降低交叉项的分布(三角窗)
    tfrsp 谱图分布
    tfrspwv 平滑伪Wigner-Ville分布
    tfrwv Wigner-Ville分布
    tfrzam Zhao-Atlas-Marks分布

    六、其他处理函数:

    friedman 瞬时频率密度
    htl 图像直线检测中的Hough变换
    margtfr 时频表示的能量
    momftfr 时频表示的频率矩
    momttfr 时频表示的时间矩
    renyi Renyi信息度量
    ridges 波峰提取
    plotifl 绘制归一化的瞬时频率规律
    tfrparam 返回用于显示时频表示的参数
    tfrqview 时频表示的快速可视化
    tfrsave 保存时频表示的参数
    tfrview 时频表示的可视化

    非平稳信号的时频分析-----Gabor变换

    Gabor变换

    matlab函数:

    [[tfr[,dgr[,gam]]]=]tfrgabor(sig[,N[,q[,h[,trace]]]]);

    sig为输入信号,长度为Nx = length(sig); N为Gabor系数的个数,Nx必须为N的整倍数,否则出错。N越大,频率分辨率越高。q为过采样度,是Gabor的时域个数N的除数,当q=1时,时频面完全采样;当q>1时,时频面过采样,Gabor系数的个数N必须为q的整数倍。h为综合窗(默认为高斯窗,窗长为N+1)

    程序1:

    clc;
    clear all;
    close all;
    
    N = 500;
    dt = 1;
    t = 0 : dt : N - 1;
    f1 = 0.05;
    f2 = 0.025;
    x = zeros(size(t));
    x(50:150) = cos(2 * pi * f1 * (t(50 : 150) - 50));
    x(250:350) = cos(2 * pi * f2 * (t(250 : 350) - 250));
    
    tfrgabor(x',100,100,gausswin(101));  %采用100个Gabor系数,过采样度为100,采用长度为101的高斯窗进行Gabor变换。
    

    111.png-21.8kB

  • 相关阅读:
    前端事件系统(四)
    前端事件系统(三)
    前端事件系统(二)
    前端事件系统(一)
    前端图片选择问题
    浅谈前端移动端页面开发(布局篇)
    诙谐论设计模式(一)——创建型设计模式
    总结三年未满的工作经历,写下自己对技术的坚持
    java内存优化牛刀小试
    将上下文融入知识图谱以进行常识推理
  • 原文地址:https://www.cnblogs.com/kolane/p/11538036.html
Copyright © 2011-2022 走看看