How to utilize 'symsum' in this case?

조회 수: 1 (최근 30일)
Chae gyu Lim
Chae gyu Lim 2022년 5월 17일
답변: Star Strider 2022년 5월 17일
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