How do i code y[n]?

조회 수: 7 (최근 30일)
Enes Ozdogan
Enes Ozdogan 2021년 11월 28일
댓글: Image Analyst 2021년 11월 29일
y[n] = x[n] + 0.4x[n-400] + 0.4x[n-800]

답변 (1개)

Image Analyst
Image Analyst 2021년 11월 28일
Use parentheses instead of brackets:
n = 801; % n must be at least this big.
y(n) = x(n) + 0.4 * x(n-400) + 0.4 * x(n-800);
  댓글 수: 3
Semih Erken
Semih Erken 2021년 11월 29일
how to convolve this without conv function
Image Analyst
Image Analyst 2021년 11월 29일
Then I guess it must be your homework assignment. If you're not allowed to use conv(), you'll have to use a for loop.

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

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by