필터 지우기
필터 지우기

i want to convolve two signal

조회 수: 2 (최근 30일)
praveen rai
praveen rai 2017년 8월 30일
댓글: Adam 2017년 8월 30일
i have a matrix i.e image size is 435*262 (y=435*262) i want to convolve with a 1d array i.e a=[0 1 0] z=conv2(double(y),double(a));% code for convolution my question is can i convolve in this way is it right or should i have to convert 'y' in to 1D or i have to make 'a' in to 2D i am little bit confuse can any one help or provide me the code if m writing in wrong way
  댓글 수: 1
Adam
Adam 2017년 8월 30일
Yes, you can convolve in that way. a is already 2d, it just happens to have dimensionality of 1 in one of the directions. You have to make sure you get the right orientation though of course for the direction you want to convolve. Although with your filter it doesn't matter anyway since it doesn't do anything!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by