How to utilize 'symsum' in this case?

1 次查看(过去 30 天)
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?

回答(1 个)

Star Strider
Star Strider 2022-5-17
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 = 
.

类别

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