Matlab help with discrete time signal

1 次查看(过去 30 天)
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

回答(1 个)

Rohan Kale
Rohan Kale 2012-7-5
编辑:Rohan Kale 2012-7-5
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.

类别

Help CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by