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

4 vues (au cours des 30 derniers jours)
x=[1 2 3 4]
n=-2:1;
n1=0.5 * n;
stem(n1,x)

Réponses (1)

Jonas
Jonas le 10 Juil 2021
if you want x[0.5n] you have to calculate n1=1/0.5 * n

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by