How to draw the delta signal in matlab
66 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I was trying to draw but I wasn't able to
0 Commenti
Risposte (2)
the cyclist
il 27 Mar 2023
Modificato: the cyclist
il 27 Mar 2023
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
il 28 Mar 2023
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 Commenti
Vedere anche
Categorie
Scopri di più su Spectral Measurements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!