Convolution without using conv

조회 수: 8 (최근 30일)
Deniz Bozdogan
Deniz Bozdogan 2021년 2월 24일
댓글: Walter Roberson 2021년 2월 24일
I want to find the convolution between x1 and h1 (and for all the other pairs). Both functions from the screenshots are defined for n=[-25:25], all i need is to find how to calculate their convolutions.

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 24일
Get your program working first before you worry about optimization.
  • write a u function.
  • write a function for each of your formulas. Each one can have a for loop over its inputs, and if/elseif to calculate the outputs.
  • Now calculate each over -25:25
  • then calculate the convolution
  댓글 수: 2
Deniz Bozdogan
Deniz Bozdogan 2021년 2월 24일
I am at calculating the convolution part but i dont know how. Don't i need convolution to find the output?
Walter Roberson
Walter Roberson 2021년 2월 24일
It shows you the summation you need to use. The only trick is in knowing to clamp the mininum and maximum limits to avoid going out of bounds if you are near an edge.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by