trying to do 1D convolution without using inbuilt functions.
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
satnam singh
le 2 Mai 2016
Réponse apportée : Sk Group
le 25 Oct 2021
Hi, I used the following code to do 1D convolution. But getting error:>>
a=[1 2 3];
b=[4 5 6];
K= length(a)+length(b)-1
for i=1:k
K_out(i)= 0
for j=1:length(b)
K_out(i)= K_out(i)+ a(i-j)*b(j)
end
end
The error is: Undefined function or variable 'k'.
But I already defined K.
Thanks
0 commentaires
Réponse acceptée
Plus de réponses (1)
Sk Group
le 25 Oct 2021
Convolution without conv function in MATLAB | Complete CODE | Explanation | Example And Output
For complete detailed post visit: https://www.swebllc.com/convolution-without-function-in-matlab/
0 commentaires
Voir également
Catégories
En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
