How to plot delta dirac and unit step functions
167 ビュー (過去 30 日間)
古いコメントを表示
Hey all, I am having trouble trying to plot (via stem) some delta dirac and unit step functions for my Digital Signal Processing class!
The ones in particular I am trying to plot are as follows:
Thanks!
9 件のコメント
Walter Roberson
2020 年 9 月 24 日
編集済み: Walter Roberson
2020 年 9 月 24 日
I already showed you how to plot the functions. What I posted above was actual code.
Further example of plotting.
t = 1 : 10;
y = randi([0 1], 1, 10);
stem(t, y);
I think you should concentrate on writing functions that implement dirac delta and unit step.
回答 (1 件)
Kiran Felix Robert
2020 年 11 月 4 日
Hi Steven,
Refer the documentation of Dirac-delta(Dirac)and unit-step(heaviside) they point to the MATLAB Built-in functions for the unit-step and Dirac-Delta Functions. You can use these Built-in functions to write your required expression and plot using stem.
Kiran Felix Robert
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Equivalent Baseband Simulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!