in the case of infinite number with many variable and plot

조회 수: 1 (최근 30일)
ljaseon
ljaseon 2021년 4월 28일
댓글: ljaseon 2021년 5월 2일
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
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.
ljaseon
ljaseon 2021년 5월 2일
thank you!!😄😄

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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