How to plot delta dirac and unit step functions

167 ビュー (過去 30 日間)
Steven Artzer
Steven Artzer 2020 年 9 月 22 日
回答済み: Kiran Felix Robert 2020 年 11 月 4 日
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 件のコメント
Steven Artzer
Steven Artzer 2020 年 9 月 24 日
Okay then I guess I'm mostly trying to figure out how to plot the functions listed... Like how exactly I find or write a function in Matlab for those.
Walter Roberson
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
Kiran Felix Robert 2020 年 11 月 4 日
Hi Steven,
The Examples shown above can be used to plot the functions using stem.
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

カテゴリ

Help Center および File ExchangeEquivalent Baseband Simulation についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by