MATLAB How Do I Solve This Complex Integral in MATLAB?

  • Thread starter Thread starter hore69
  • Start date Start date
  • Tags Tags
    Integral Matlab
AI Thread Summary
The discussion revolves around a user seeking assistance with solving a complex integral in MATLAB, specifically the expression r(α) involving an exponential function and trigonometric terms. The user encounters multiple errors, including a warning about the inability to find an explicit integral and issues with assignment statements in their code. Another participant suggests that the integral may be too complicated for MATLAB's symbolic toolbox and recommends trying a simpler integral, such as the integral of e^sin(x). The conversation highlights challenges faced when dealing with intricate mathematical computations in MATLAB and the potential limitations of the software in solving certain integrals.
hore69
Messages
1
Reaction score
0
hello , somebody could help me to solve in MATLAB this integral?
r(\alpha) =\frac{1}{\theta} \int_{0}^{\theta} \ e^{-jk*2Rsin(\sigma/2)sin(\sigma/2+\alpha) } \,d\sigma
I have tried to solve it but it gives this error :confused: :

Warning: Explicit integral could not be found.
> In C:\MATLAB6p5\toolbox\symbolic\@sym\int.m at line 58
In C:\MATLAB6p5\work\directividadCurvado.m at line 12
? Error: Assignment statements do not produce results. (Use == to test
for equality.)

Error in ==> C:\MATLAB6p5\toolbox\symbolic\@sym\double.m
On line 45 ==> D = reshape(eval(X),m,n);

Error in ==> C:\MATLAB6p5\work\directividadCurvado.m
On line 12 ==> ppp=double(int(exp(-i*k*2*R*sin(x/2).*(sin(x/2)+t)),'x','0','ang'));

please help me. Excuse me by my writing. Thanks. :smile:
 
Physics news on Phys.org
U can't solve it. Try Matlab with a simpler integral

\int e^{\sin x} \ dx

Daniel.
 
Back
Top