Program sum in matlab

1 次查看(过去 30 天)
Any help for write this program will be great. Thank
you

采纳的回答

Birdman
Birdman 2018-1-22
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 个评论
Birdman
Birdman 2018-1-22
You are welcome. If it is helpful, can you accept it?
Mohamed Musni
Mohamed Musni 2018-1-22
sure. it helped me. again thank you for your valuable time :D

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by