Matlab help with discrete time signal
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
For discrete time signal...x(n)=ka^n{u(n)-u(n-5)}....x(n)=341...x(0)=10...signal has positive and negative values
Is there a way to determine constants 'k' and 'a' and plot x(n) within Matlab? Or is it necessary to find constants and plot x(n)? If so how? I have looked through help menus and can not find any way to make it work, but I am also new to Matlab.
Thank you,
Josh
0 commentaires
Réponses (1)
Rohan Kale
le 5 Juil 2012
Modifié(e) : Rohan Kale
le 5 Juil 2012
since your sequence is { ka,ka^2,ka^3,ka^4} which is {x(1) x(2) x(3) x(4) } and the sequence weights are known. hence your a= x(2)/x(1) and k=(x(1)^2)/x(2). for plotting just do stem(n,x); and if you want to plot the same with the expression ka^n just write this => n=-10:10; x=k*(a.^n).*[n>=0 & n<5]; you can change the range of 'n' per your requirement.
0 commentaires
Voir également
Catégories
En savoir plus sur Digital Filter Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!