How Do I Solve This Complex Integral in MATLAB?

  • Context: MATLAB 
  • Thread starter Thread starter hore69
  • Start date Start date
  • Tags Tags
    Integral Matlab
Click For Summary
SUMMARY

The discussion focuses on solving a complex integral in MATLAB, specifically the integral defined as r(α) = (1/θ) ∫₀^θ e^(-jk*2Rsin(σ/2)sin(σ/2+α)) dσ. The user encountered errors indicating that the explicit integral could not be found and received warnings related to assignment statements. The suggested solution is to simplify the integral, with an example provided: ∫ e^(sin x) dx, which is more manageable for MATLAB's symbolic toolbox.

PREREQUISITES
  • Familiarity with MATLAB 6.5 and its symbolic toolbox
  • Understanding of complex integrals and their properties
  • Knowledge of trigonometric functions and their applications in integrals
  • Basic experience with error handling in MATLAB programming
NEXT STEPS
  • Learn how to use MATLAB's symbolic toolbox for solving integrals
  • Research techniques for simplifying complex integrals in MATLAB
  • Explore error handling and debugging in MATLAB scripts
  • Study examples of solving simpler integrals to build foundational skills
USEFUL FOR

This discussion is beneficial for MATLAB users, particularly those involved in mathematical modeling, engineering applications, and anyone seeking to enhance their skills in symbolic computation and integral calculus.

hore69
Messages
1
Reaction score
0
hello , somebody could help me to solve in MATLAB this integral?
[tex]r(\alpha) =\frac{1}{\theta} \int_{0}^{\theta} \ e^{-jk*2Rsin(\sigma/2)sin(\sigma/2+\alpha) } \,d\sigma[/tex]
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

[tex]\int e^{\sin x} \ dx[/tex]

Daniel.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
4K