필터 지우기
필터 지우기

How do you compute a convolution of u(n) and n*u(n)??? Matlab is going crazy!!!!

조회 수: 2 (최근 30일)
Boom
Boom 2016년 8월 7일
답변: Sharmila Raghu 2016년 8월 12일
Here is my code:
syms n;
x=(.5)^n*heaviside(-n-1);
y=(1/3)^n*heaviside(n);
H=conv(x,y)
  댓글 수: 1
Image Analyst
Image Analyst 2016년 8월 7일
편집: Image Analyst 2016년 8월 7일
Edited -- I fixed your formatting.
Why is it going crazy? What is u (x or y) and what is n*u (x or y)? You are aware that convolution flips one of the arrays, right? And you are aware that there are several "edge effects" options (same, full, valid), right? So what's the problem? Explain what you mean by "crazy".

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

답변 (1개)

Sharmila Raghu
Sharmila Raghu 2016년 8월 12일
Please refer to the solution provided in the following link for more information :
Also,"conv" accepts only vectors of type single and double as inputs.

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by