convolution in matlab - matrix dimesnions different
显示 更早的评论
I want convolute two matrices
First matrix, A=[1 2 3...........8000]. Second matrix B=[1 2 3 4 5] I'm unable to do this with conv function......please let me know how to do this.
1 个评论
Jan
2013-7-8
Please post what you have tried so far and the error message, if you get one.
回答(2 个)
Image Analyst
2013-7-8
Did you try it?
A = 1:8000;
B = 1:5;
C = conv(A, B);
Seems pretty straightforward. What was the difficulty you had?
3 个评论
Avinash
2013-7-8
Image Analyst
2013-7-8
No, you didn't try that. Because I know for a fact that that works, as long as you didn't redefine conv to be a variable or custom function, thus destroying the built-in conv(). You tried something else but didn't show us what your code was or what your error message was. Please paste your code and all the red text from the error message. Don't leave anything out.
Avinash
2013-7-8
类别
在 帮助中心 和 File Exchange 中查找有关 Correlation and Convolution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!