How to convolve two equations
조회 수: 17 (최근 30일)
이전 댓글 표시
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
Walter Roberson
2017년 10월 31일
Did you create
s = tf('s')
or using
syms s
? Either way, conv() is not valid for those.
채택된 답변
Walter Roberson
2017년 10월 31일
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
Taylor Artunian
2019년 12월 13일
Convolution in time domain is equivalent to multiplication in frequency.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numbers and Precision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!