saeshma_overlap_S_A_conv_ref.zip
- Aeshma了解作者
- matlab开发工具
- 3.9MB文件大小
- zip文件格式
- 0收藏次数
- 1 积分下载积分
- 0下载次数
- 2021-02-08 02:58上传日期
overlap and save method using convolution, performance comparison

saeshma_overlap_S_A_conv_ref.zip
- overlap_S_A_conv_ref.m1.1KB
- Immigrant Song.mp34MB
内容介绍
clear all; close all; clc;
[x1, Fs] = audioread('Immigrant Song.mp3');
player0 = audioplayer(x1, Fs);
% play(player0)
% stop(player0)
x = x1(:,1) + x1(:,2);
player1 = audioplayer(x, Fs);
% play(player1)
% stop(player1)
b = [0.2];
a = [1 -0.8];
[h,t] = impz(b,a);
%% Overlap and add
L = length(x);
M = length(h);
Q = 100;
Nblocks = floor(L/Q);
ni = (1:Q)';
no = (1:M+Q-1)';
y = zeros(L+M-1,1);
y(no) = conv(h,x(ni));
for m=1:Nblocks-1
z = conv(h,x(m*Q+ni));
y(m*Q+no) = y(m*Q+no)+z;
end
yOAM = y;
player2 = audioplayer(yOAM, Fs);
% play(player2)
% stop(player2)
%% Overlap and Save
% Overlap-Save Method
L = length(x);
M = length(h);
if Q >= M
else
end;
P = Q-M+1; % Overlap
Nblocks = floor((L-Q)/P+1);
y = zeros(L+M-1,1);
y(1:Q) = cconv(h,x(1:Q-M),Q);
z = cconv(h,x(1:Q),Q);
y(P:Q) = z(P:Q);
for m = 1:Nblocks-1
z=cconv(h,x(m*P+(1:Q)),Q);
y(Q+(m-1)*P+(1:M))= z(P:Q);
end
yOSM = y;
player3 = audioplayer(yOAM, Fs);
% play(player3)
% stop(player3)
%%%%%%%%%%%%%%%%%%%%%%%%%%5
% N=length(h)+length(x)-1;
% y=ifft(fft(h,N).*fft(x,N));
评论



相关推荐
- Graph_Signal_Processing.zip针对图信号处理的几个基础点的代码教程。非常好。
- Guidebook of NMFLAB for signal processing.zipNMFLAB for Signal Processing Toolbox for NMF (Non-negative Matrix Factorization) and BSS (Blind Source Separation) By Andrzej CICHOCKI and Rafal ZDUNEK Copyright LABSP, June 15, 2006
- NMFLAB for Signal Processing_ver1.2.zip非负矩阵分解使用说明书,作者:Andrzej CICHOCKI and Rafal ZDUNEK
- Signal-Processing-Software.rarA Speech Tool Software for Signal Processing Applications
- Introduction to Communication, Control, and Signal ProcessingThis course is taken mainly by undergraduates, and explores ideas involving signals, systems and probabilistic models in the context of communication, control and signal processing applications....
- Convex Optimization in Signal Processing and Communications凸优化理论(convex optimization)在信号处理,图像处理,通信中有很广泛的应用,并受到越来越多的关注。这本书是由这个领域里的专家合写的,对理论研究和工程应用都有很大的启迪。此外,这本书中还包含了凸优化...
- Convex Optimization in Signal Processing and Communications• gradient-based algorithms for signal recovery • semidefinite programming (SDP) relaxation • radar waveform design via SDP • blind source separation for image processing • modern sampling theory...
- Springer 2013 Signal ProcessingThis book presents theory, design methods and novel applications for integrated circuits for analog signal processing. The discussion covers a wide variety of active devices, active elements and ...
- Intelligent Radio Signal Processing.rar该文档介绍了一种基础的decoding算法,并在此基础上做了基本方针验证其性能。能够给做相关学术研究的学者较好的借鉴意义。
- matlabcnhelp.rarmatlab中文帮助很难找的,快速下载
最新资源