Hi guys , Please How I can write
x[n]=3(-1/4)^n u[n] , 1 n ≤ 20 in matlab..

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 18 日

0 投票

n=1:20
x=3*(-1/4).^n
stem(n,x)

2 件のコメント

Abdullah AlHarbi
Abdullah AlHarbi 2016 年 3 月 18 日
Thanks Sir ,, But how I can write this x1[n] = u[n-5] ,1 ≤ n ≤ 10
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 18 日
n=1:10
x1=heaviside(n-5)+0.5*not(n-5)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および 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