MATLAB Symbolic intergration in Matlab using INT command?

AI Thread Summary
The discussion centers around the use of the "INT" command for symbolic integration in MATLAB. Users express confusion about when to utilize this command effectively. The correct format for using the "INT" command is clarified as int(function, 'variable'), with an example provided for calculating the integral of the function x^2 + sin(x) from 1 to 100. The steps include defining the function as a string and then applying the "INT" command with the specified limits. This highlights the importance of understanding the syntax and application of symbolic integration in MATLAB for accurate computations.
ACT
Messages
13
Reaction score
0
Symbolic intergration in Matlab using "INT" command?

Hello,

I am a bit confused a to when should we use the Symbolic intergration using "INT" command in Matlab ?

Thanks
 
Physics news on Phys.org
hii

also and me,
But ,I think at the time when change to symbolic multiplication (*)...


with my best wishes...!
 
cotton candy said:
hii

also and me,
But ,I think at the time when change to symbolic multiplication (*)...


with my best wishes...!

sorry but i don't understand ur reply!
 
the format in MATLAB is
int( function, 'variable' ).
For example, to calculate the integral from 1 to 100, the object function is x^2 + \sin (x), you should do following:
1. define the function as
f = 'x ^ 2 + sin(x)';
2. integral
int( f, 'x', 1, 100 )
 

Similar threads

Replies
1
Views
1K
Replies
9
Views
3K
Replies
4
Views
2K
Replies
32
Views
4K
Replies
4
Views
4K
Back
Top