ola

版本 1.0.0.0 (4.5 KB) 作者: Pierce Brady
overlap and add functions
655.0 次下载
更新时间 2011/8/25

查看许可证

% ola - Overlap and Add
%
% Y = ola(X,sShift,hWindow,Dim)
%
% Performs the overlap and add method on the input matrix X to create the
% output array Y.
%
% Example
% Fs = 10000; % Sampling frequency
% t = (0:2*Fs)/Fs; % Time vector
%
% A = [0.25 0.5 1 0.5 0.25]; % Amplitudes
% F = [100 125 150 175 425]; % Frequencies
% x = A*sin(2*pi*F.'*t); % Signal
%
% Framesize = 256; % Frame size
% pOverlap = 0.4; % Precentage overlap
% sOverlap = fix(Framesize*(1-pOverlap)); % Sample overlap
% sShift = Framesize - sOverlap; % Sample shift
% hWindow = @hamming; % Windowing function
%
% X = buffer(x,Framesize,sOverlap,'nodelay'); % Framed signal
% nFrames = size(X,2); % Number of frames
% X = X.*repmat(hWindow(Framesize),1,nFrames); % Apply window
%
% % Normal overlap and add
% Y1 = ola(X,sShift,[],1); % Reconstructed signal
%
% % Allen & Rabiner's method
% Y2 = ola(X,sShift,@hamming,1);
% Y2 = olaar(X,sShift,@hamming,1);
%
% % Griffin & Lim's method
% Y3 = olagl(X,sShift,@hamming,1);
%
% figure
% hold all
% plot(x,'bx')
% plot(Y1,'r')
% plot(Y2,'g')
% plot(Y3,'c')
% legend('Original','ola','olaar','olagl')
%
% See also
% ola olaar olagl

%% Author Information
% Pierce Brady
% Smart Systems Integration Group - SSIG
% Cork Institute of Technology, Ireland.
%

%% Reference
% SSBoll79 function by Esfandiar Zavarehei
% FRAMES2VEC function by Kamil Wojcicki, UTD, July 2011
%

引用格式

Pierce Brady (2024). ola (https://www.mathworks.com/matlabcentral/fileexchange/32684-ola), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0