Program sum in matlab
2 views (last 30 days)
Show older comments
Any help for write this program will be great. Thank
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169320/image.jpeg)
you
0 Comments
Accepted Answer
Birdman
on 22 Jan 2018
Here is a starting point for you. Use symsum function from Symbolic Toolbox. See the example:
m=5;
P=sym('P',[1 m]);
t=sym('t',[1 m]);
q=sym('q',[1 m]);
syms k h
fun=sum(symsum((P+(t.*q/2).*h)./(t),k,1,m))
The rest is yours to do.
3 Comments
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!