symsum indexing
显示 更早的评论
hey i've seen other people run into this problem but the solution is always "why don't you do [something else that isn't what you actually wanted to do]?"
i'd really appreciate if someone can help me figure this one out.
i am looking to do a sum on something that has the form symsum(const*cos(angle(k)),k,0,10)
as you know we may not use a sym as an index.so....
how do i do a sum with the index? i can solve this by using a for loop writing up a text equation and then eval on the equation. i will be very sad to hear there is no other way.
many thanks to whoever may help cheers gili
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Common Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!