HMM工具箱 包括一些模型 How to use the HMM toolbox HMMs with discrete outputs Maximum likelihood parameter estimation using EM (Baum Welch) The scr ipt dhmm_em_demo.m gives an example of how to learn an HMM with discrete outputs. Let there be Q=2 states and O
Fs =5120; % Sampling frequency T1 = 1/Fs; % Sample time L = size(x,1); % Length of signal NFFT = 2^nextpow2(L); % Next power of 2 from length of y Y = fft(x,NFFT)/L; Z=2*abs(Y(1:NFFT/2+1)); 非常好用。