How can I plot summation along with delta function using for loop

조회 수: 1 (최근 30일)
Deeksha Arora
Deeksha Arora 2020년 2월 1일
댓글: Deeksha Arora 2020년 2월 1일
Plot the function x(n)= summation (k=0: infinity) 4*delta([n-3k-1]
  댓글 수: 4
Ioannis Andreou
Ioannis Andreou 2020년 2월 1일
편집: Ioannis Andreou 2020년 2월 1일
Seems right to me.
So x(n) = 4 if and only if n-1 can be divided by 3. Which means, that x(n) is 4 when n-1 = 0, 3, 6, 9, 12 and so on and thus x(n) = 4 when n = 1, 4, 7, 10 and so on. And that is exactly what your plot is showing
Deeksha Arora
Deeksha Arora 2020년 2월 1일
@Ioannis Andreou Thanks a lot for explaining this...I was having a hard time figuring out the output

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by