How do i code y[n]?
조회 수: 7 (최근 30일)
이전 댓글 표시
y[n] = x[n] + 0.4x[n-400] + 0.4x[n-800]
댓글 수: 0
답변 (1개)
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
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.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!