How to sum specific value in 1:m ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
- 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 Kommentare
Azzi Abdelmalek
am 11 Jun. 2014
b(1)=sin(b)
what the variable b (in the left and the right expression) represent?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!