採用された回答

Birdman
Birdman 2018 年 1 月 22 日

1 投票

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 件のコメント

Mohamed Musni
Mohamed Musni 2018 年 1 月 22 日
Thank you again for your help. solved so many problems of my coding today. have a nice day :D
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 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by