How to convolve two equations
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Asima Warner
le 31 Oct 2017
Commenté : Taylor Artunian
le 13 Déc 2019
I am trying to convolve two functions.
f(s) = (1-4s^2)^0.5
v(s) = sinc(s/pi)-0.5(sinc(s/2*pi))^2
I followed with entering in this:
w = conv(f,v,'full');
I keep getting an error. Would anyone know how to help? I'm not sure where I am going wrong?
6 commentaires
Walter Roberson
le 31 Oct 2017
Did you create
s = tf('s')
or using
syms s
? Either way, conv() is not valid for those.
Réponse acceptée
Walter Roberson
le 31 Oct 2017
conv() is for discrete convolution. The use of symbolic variables implies continuous convolution. For that, you can use the fourier equivalence, that convolution in time is equivalent to addition in frequency.
syms s t
f(s) = sqrt(1-4*s^2)
v(s) = sinc(s/pi)-0.5*(sinc(s/2*pi))^2
fv = simplify(ifourier(fourier(f,s,t)+fourier(v,s,t),t,s))
2 commentaires
Taylor Artunian
le 13 Déc 2019
Convolution in time domain is equivalent to multiplication in frequency.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Numbers and Precision 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!