Program to find the deconvolution of two sequences.
Afficher commentaires plus anciens
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.
Réponses (0)
Catégories
En savoir plus sur Numerical Integration and Differential Equations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!