MATLAB: Symsum indexing

summationsyms

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

Best Answer

Sorry, you have defined away any useful answer. You want to use symsum() but symsum() is not appropriate for what you are doing, and you do not wish to listen to any non-symsum() alternatives.
You will either have to live with what you have or amend the scope of what you are willing to listen to.
Related Question