フィルターのクリア

Plotting signals discrete with dirac

3 ビュー (過去 30 日間)
karim Soussou
karim Soussou 2021 年 6 月 22 日
コメント済み: John D'Errico 2021 年 7 月 13 日
I am still new in matlab and i am trying to plot those signals 𝑥1[𝑛] = 2𝛿[𝑛 + 𝐷1] − 3𝛿[𝑛 + 𝐷2] + 3𝛿[𝑛 − 𝐷3] + 2𝛿[𝑛 − 𝐷4] 𝑥2[𝑛] = 2𝑢[𝑛 + 𝐷1] − 3𝑢[𝑛 + 𝐷2] + 3𝑢[𝑛 − 𝐷3] + 2𝑢[𝑛 − 𝐷4] 𝑥3(𝑡) = 2𝑢(𝑡 + 𝐷1) − 3𝑢(𝑡 + 𝐷2) + 3𝑢(𝑡 − 𝐷3) + 2𝑢(𝑡 − 𝐷4) where D1=1, D2,=0 D3,=6 D4=0

採用された回答

Chunru
Chunru 2021 年 6 月 23 日
D = [-1 0 6 8]; % D1, D2 (negative), D3, D4(changed to 8);
x1 = [2 -3 3 2];
subplot(311); stem(D, x1); % for dirac
subplot(312); x2 = [2 -3 3 2]; x2 = cumsum(x2); stairs(D, x2); % for steps
subplot(313); x2 = [2 -3 3 2]; x2 = cumsum(x2); stairs(D, x2);
  1 件のコメント
John D'Errico
John D'Errico 2021 年 7 月 13 日
Please don't do student homework assignments for them. It does not help them, except to teach them there is always someone willing to do their work for them. That is not the purpose of Answers.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by