ProgrammingBlue
One stop for all your programming practices
Home
Artificial Intelligence
C
C++
Computer Architecture
Computer Network
Data Structure
Digital Signal Processing
Java
Linux
MATLAB
Prolog
skip to main
|
skip to sidebar
Tuesday, 15 May 2012
Perform linear and circular convolution of two sequences, [1, 1, 2, 2] and [1, 2, 3, 4].
close all;
clc;
x1=[1,1,2,2];
x2=[1,2,3,4];
x3=zeros(1,4);
for n=1:4
for m=1:4
x3(n)=x3(n)+(x1(m)*x2(( mod((n-m),4)+1)));
end;
end;
x3
x4=conv(x1,x2)
0 comments
Total Pageviews
Pages
Home
C
C++
Data Structure
MATLAB
Prolog
Java
Linux
DSP
Computer Network
Computer Architecture
Facebook Page
Followers
© 2011-2012
ProgrammingBlue
Posts RSS
∙
Comments RSS
Back to top
0 comments