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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Simulink 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by