To generate following sequence
2 次查看(过去 30 天)
显示 更早的评论
To generate using stem function -
y(n) = 5 * e^cos(pi*n/3) * u(n-3)
回答(1 个)
Thiago Henrique Gomes Lobato
2019-10-20
You can plot it actually pretty easily, just make sure to use your own u vector below :
n = 4:100;
u = ones(1,97);
y = 5 .* exp(cos(pi*n/3)) .* u(n-3);
stem(n,y)
![Untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/243660/Untitled.png)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Stem Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!