Solving Double integral equations

2 次查看(过去 30 天)
I tried implementing this double integral equations. However, am getting error when i implemented with the following equation
u_0 = 1.25663706*1e-6; % permeability of free space
L = 12.4; % Axial distance between rotor back plates
p =8; % Number of pole pairs
R1 = 55; % Inner radii of magnets
R2 = 100; % Outer radii of magnets
Kn = 1;
n=1
n = 1
x=0.05
x = 0.0500
sol1 =integral2(@(R,y)u_0*Kn*((cosh(n*p*L*0.5*.1/R))./(sinh(n*p*L*.1/R))).*cosh(n*p*(L-y)*.1/R).*cos(n*p*(xx(x))*.1/R),R1,R2,0,1)
Error using /
Matrix dimensions must agree.

Error in solution (line 13)
sol1 =integral2(@(R,y)u_0*Kn*((cosh(n*p*L*0.5*.1/R))./(sinh(n*p*L*.1/R))).*cosh(n*p*(L-y)*.1/R).*cos(n*p*(xx(x))*.1/R),R1,R2,0,1)

Error in integral2Calc>integral2t/tensor (line 228)
Z = FUN(X,Y); NFE = NFE + 1;

Error in integral2Calc>integral2t (line 55)
[Qsub,esub] = tensor(thetaL,thetaR,phiB,phiT);

Error in integral2Calc (line 9)
[q,errbnd] = integral2t(fun,xmin,xmax,ymin,ymax,optionstruct);

Error in integral2 (line 105)
Q = integral2Calc(fun,xmin,xmax,yminfun,ymaxfun,opstruct);

采纳的回答

Torsten
Torsten 2022-10-1
u_0 = 1.25663706*1e-6; % permeability of free space
L = 12.4; % Axial distance between rotor back plates
p =8; % Number of pole pairs
R1 = 55; % Inner radii of magnets
R2 = 100; % Outer radii of magnets
Kn = 1;
n=1
n = 1
x=0.05
x = 0.0500
sol1 =integral2(@(R,y)u_0*Kn*((cosh(n*p*L*0.5./R))./(sinh(n*p*L./R))).*cosh(n*p*(L-y)./R).*cos(n*p*x./R),R1,R2,0,1)
sol1 = 7.7928e-05

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Partial Differential Equation Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by