www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/SynchrosqueezedTxAndReconstructionOfSpeechExample.m
%% Synchrosqueezed Transform and Reconstruction of Speech Signal % Obtain the wavelet synchrosqueezed transform of a speech signal and % compare the original and reconstructed signals. %% % Load the speech signal and obtain its synchrosqueezed transform. load mtlb; soundsc(mtlb); dt = 1/Fs; t = 0:dt:numel(mtlb)*dt-dt; [sst,f] = wsst(mtlb); %% % Plot the synchroqueezed transform. pcolor(t,f,abs(sst)); shading interp xlabel('Seconds'); ylabel('Amplitude'); title('Synchrosqueezed Transform'); %% % Obtain the inverse synchroqueezed transform and play the reconstructed % speech signal. xrec = iwsst(sst); soundsc(xrec);