How to sum specific value in 1:m ?
3 次查看(过去 30 天)
显示 更早的评论
- m=1:2
- b(m)=sum(sin(1:m)*b)
- then the result
- b(1)=sin(b)
- b(2)=sin(b)+sin(2*b)
- But I need
- b(1)=sin(b)
- b(2)=sin(b)+sin(3*b)
for n
- b(n)=sin(b)+sin(3*b)+sin(5*b)+sin(7*b)...
2 个评论
Azzi Abdelmalek
2014-6-11
b(1)=sin(b)
what the variable b (in the left and the right expression) represent?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!