time scaling, how to remove fraction in the below code? or give another code for discrete x[0.5n] ?

4 ビュー (過去 30 日間)
Foysal Ahmmed
Foysal Ahmmed 2021 年 7 月 9 日
回答済み: Jonas 2021 年 7 月 10 日
x=[1 2 3 4]
n=-2:1;
n1=0.5 * n;
stem(n1,x)

回答 (1 件)

Jonas
Jonas 2021 年 7 月 10 日
if you want x[0.5n] you have to calculate n1=1/0.5 * n

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by