symsum indexing
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Common Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!