in the case of infinite number with many variable and plot
1 次查看(过去 30 天)
显示 更早的评论
clearvars;
syms Amn a b V0 n m x y;
a=10;
b=5;
assume(m,{'positive','integer'});
assume(n,{'positive','integer'});
Vo=1.0;
Amn=[[(m*pi/a)^2+(n*pi/b)^2]^-1]*[(-1)^m+n*144*a*b/m*n*pi]*(1-[1/b]*[1-(-1)^n])
V1(x,y)= (4*Vo/pi)*sin(m*pi*x/a)*sinh(n*pi*y/a)/n*sinh(n*pi*b/a);
V2(x,y)=Amn*sin(m*pi*x/a)*sin(n*pi*y/b);
V=V1(x,y)+V2(x,y)
Amn is given parameter and a=10 ,b=5
before i upload this code
i used for loop for n,m buy n,m is infinite number that so the for loop is not stop and i think it is not correct so i deleted it
so i dont know what expression is used for these case
and it is possible to plot it? what is the variation ? i dont know what to fit it for variation ,theres are so many variation so difficult for it
if you can modify for what i write i will be so thanksful if you can code it
2 个评论
Dyuman Joshi
2021-5-1
编辑:Dyuman Joshi
2021-5-1
You can use symbolic summation - symsum. You have already done the most part of the code, you just need to apply it to the summation function. Once you get the summation, in terms of x and y, you can use the relation to plot the variation as you want.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!