in the case of infinite number with many variable and plot
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens

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 commentaires
Dyuman Joshi
le 1 Mai 2021
Modifié(e) : Dyuman Joshi
le 1 Mai 2021
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.
Réponses (0)
Voir également
Catégories
En savoir plus sur Spline Postprocessing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!