How to utilize 'symsum' in this case?

1 view (last 30 days)
Chae gyu Lim
Chae gyu Lim on 17 May 2022
Answered: Star Strider on 17 May 2022
I'm trying to write this in MATLAB code, but when I try to use 'symsum' here, it requires that term Y_j and t_i should be expressed in 'j' and 'i', but
in this case, these terms are arbitrary numbers. For this reason, I guess using loop(e.g: for, while...) should be better, but I have no idea of using it. Are there better techniques that I never thought of?

Answers (1)

Star Strider
Star Strider on 17 May 2022
Try something like this —
syms i j t Y
Eq = symsum(Y,j,2,5) * (symsum(t,i,1,j)^2 - symsum(t,i,1,j-1)^2)
Eq = 
.

Community Treasure Hunt

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

Start Hunting!