ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ
ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ

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 Exchange์—์„œ MATLAB์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by