How to draw the delta signal in matlab
조회 수: 73 (최근 30일)
이전 댓글 표시
I was trying to draw but I wasn't able to
댓글 수: 0
답변 (2개)
the cyclist
2023년 3월 27일
편집: the cyclist
2023년 3월 27일
Also, if you do mean the Dirac delta, I hope you realize that it can't truly be "drawn", because it goes to infinity. It can be represented somehow (e.g. by drawing an arrow at the x location where the Delta is).
Star Strider
2023년 3월 28일
The function normally will not plot in MATLAB because it has infinite amplitude and infinitesimal width.
So it is necessary to approximate it in ordfer to plot it —
t = linspace(0, 2, 21);
Delta = dirac(t - 1)
idx = Delta == Inf;
Delta(idx) = 1;
figure
stem(t, Delta, 'filled')
axis('padded')
.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!