How to express the sequence as a linear combination of unit step sequences?

4 ビュー (過去 30 日間)
Tuce
Tuce 2022 年 12 月 8 日
回答済み: Sarthak 2023 年 3 月 21 日
How to express the sequence as a linear combination of delayed unit step sequences in MATLAB
Sequence: x[n] = {−4, 5, 1, −2, −3, 0, 2} , −3 ≤ n ≤ 3
  1 件のコメント
Torsten
Torsten 2022 年 12 月 8 日
Can you give an example to clarify what you mean ?

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

回答 (1 件)

Sarthak
Sarthak 2023 年 3 月 21 日
Hi Tuce,
You can simply use the stairs function in MATLAB to express your sequence.
x = [-4, 5, 1, -2, -3, 0, 2];
n = -3:3;
stairs(n,x)
xlabel('n')
ylabel('x[n], y[n]')
You can also refer to the following documentation for your reference.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by