plot Discrate time signal

Please give me a sample completion code discrate time signal

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 1 月 12 日

0 投票

x = sort(rand(1,10));
y = rand(1,10);
stem(x, y)

2 件のコメント

Muhammad Fauzan
Muhammad Fauzan 2021 年 1 月 12 日
If this is the case x(t)u(1-t):
whats the solution?
Walter Roberson
Walter Roberson 2021 年 1 月 12 日
u = @(t) (t>=0);
x = sort(rand(1,10)*5-2);
y = rand(1,10);
stem(x, y)
hold on
y2 = y .* u(1-x);
stem(x, y2, 'r')
hold off

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

製品

リリース

R2014a

質問済み:

2021 年 1 月 12 日

コメント済み:

2021 年 1 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by