時頻分析工具箱中提供了計算各種線性時頻表示和雙線性時頻分布的函數,Matlab并不提供直接的繪制時間-頻率分布圖的指令,而是以時間-尺度圖代之。不過很多時候我們要用到時間-頻率圖來分析信号!
matlab時頻分析工具箱安裝方法:
1、首先下載下傳工具箱,下載下傳後解壓放在matlab的toolbox工作路徑下TFTB檔案夾。
2、打開matlab,選擇File- Set Path- Add with Subfolders-你剛才下載下傳的工具箱(package_emd)點進去- Save- Close。
3、此時選擇work下package_emd檔案夾作為工作路徑,即是C:\Program Files\MATLAB\R2010a\toolbox\TFTB 。
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~1\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct [y]/n? y
Trying to update options file: C:\Users\Administrator\AppData\Roaming\MathWorks\MATLAB\R2010a\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2010a\bin\win32\mexopts\msvc60opts.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.
**************************************************************************
至此,安裝成功 !
信号産生函數:
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 時頻表示的可視化