Is there any way to solve this integration with loop?

1 view (last 30 days)
r = 1:10
t= 1: 10

Accepted Answer

Walter Roberson
Walter Roberson on 19 Aug 2021
Yes, you could replace the following symsum() with a loop that totaled over m
syms m t r positive
syms r__prime real
Pi = sym(pi)
Pi = 
π
V_r_t = symsum(exp(m*Pi*t)*sin(m*Pi*r)*int(r__prime*sin(m*Pi*r),r__prime,0,1),m,1,10)
V_r_t = 
  4 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!