Plotting a sequence using stem()
显示 更早的评论
How can one plot this sequence using the command stem? I have tried a lot of combinations of this, but I guess I don't quite grasp the concept of computing elementwise:

My code (which doesn't work):
x = linspace(1,50,50) % I'm computing the first 50 terms
y = sqrt((3+2*x.^2)/(8*x.^2+x))
stem(y)
Thank you.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Networks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!