Circular convolution with single element array showing error
显示 更早的评论
Hi ,
When I try to do circular convolution of two vectors,it shows error when one of the vectors is single element.
How do I rectify the problem? The error message is shown below:
>> s=[1];
>> q=[1 2];
>> res=cconv(s,q)
Error
Error using .* Matrix dimensions must agree.
Error in cconv (line 46)
c = ifft(fft(datawrap(a,N),N).*fft(datawrap(b,N),N));
4 个评论
per isakson
2019-1-22
On my R2018b your code outputs
res =
1
2
>>
Deepa Abraham
2019-1-22
KSSV
2019-1-22
Try transposing ...
Deepa Abraham
2019-1-22
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!