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!