Program to find the deconvolution of two sequences.
Show older comments
Please help me with the code to find the deconvolution of two finite sequences h(n) and y(n).
I have written the following code:
clc
close all
y=input('Enter y');
h=input('Enter h');
lh=length(h);
ly=length(y);
lx=ly-lh+1;
a=zeros(ly,ly);
a
a(1:lh,1)=h;
for i=1:ly-1
for j=1:lx-1
a(i+1,j+1)=a(i,j);
end
end
a
a1=inv(a);
a1
x=a1*y';
x
The result of the inv() operation is a matrix with all elements Inf.
Please advice.
Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!