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

조회 수: 4 (최근 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에서 Develop 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