loop in sum series and product

2 views (last 30 days)
Osamah Alayafi
Osamah Alayafi on 16 Apr 2018
Commented: Osamah Alayafi on 17 Apr 2018
P_MG=0.2*heaviside(s-2).*(1-exp(-0.05*s)); P_ME=P_GE=0.05*heaviside(s-3).*(1-exp(-0.05*s));
Hi How I do loop command for this picture? thanks
  1 Comment
Jan on 16 Apr 2018
It depends on what "P_MG(s)" is. Please provide any details.

Sign in to comment.

Answers (1)

Birdman on 16 Apr 2018
Edited: Birdman on 16 Apr 2018

You don't need a for loop. If you have Symbolic Toolbox, you can easily calculate it as:

syms t n
l=3;m=6;k=3; %random upper limits for each series
%symbolic answer will be displayed. If you want numeric, just type

You first calculate the product and then sum. In product, you calculate the value of function for t values. Hope this helps.

Osamah Alayafi
Osamah Alayafi on 17 Apr 2018
Thank you very much for your answer. I have done them by myself using different way and I obtained the result that I was looking for. Regards.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by