help with display delta function
조회 수: 12 (최근 30일)
이전 댓글 표시
hi i have problm write this function in mathlab code and plot in anyone can help me ploting this function from -10 :1:10
for example?
댓글 수: 0
답변 (1개)
Hassaan Saeed
2021년 11월 8일
You can create a delta function using this
function y = delta(n)
y = n == 0;
end
Then a for loop can be used to evaluate the summation, like
sum = 0;
for k = -1000:1000
temp = delta(n-4*k)-delta(n-1-4*k);
sum = sum+temp;
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!