convolution in matlab - matrix dimesnions different

조회 수: 2 (최근 30일)
Avinash
Avinash 2013년 7월 8일
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
Jan 2013년 7월 8일
Please post what you have tried so far and the error message, if you get one.

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
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
Image Analyst
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
Avinash 2013년 7월 8일
I got it thank you..... :)

댓글을 달려면 로그인하십시오.


Matt J
Matt J 2013년 7월 8일
  댓글 수: 1
Avinash
Avinash 2013년 7월 8일
i tried this......i get this error "Matrix dimensions must agree."

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by