Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matlab Symbolic tool: Integration

Status
Not open for further replies.

munirjojoverge

Aerospace
Joined
Jan 20, 2009
Messages
3
Location
US
hi guys,

I'm trying to calculate a complex integral of a function V(x,y,z) but the integral is wrt time. The symbolic variables x, y and z are also time dependent. I started with a simple case to try to learn how to do it. Let's say V = sin(x) and I want to calculate the integral wrt time. Do I need to create another symbolic variable Xdot that symbolize dx/dt or something like this. If so How would I do that.
Any wisdom out there to help me out, please!!

Munir
 
Do you even have the Symbolic Math Toolbox?

Have you read the help files?

TTFN

FAQ731-376
 
What extra symbol? 'diff' works fine....
And yes, I also suggest you read the help files.

[reading]


Fe
 
» syms v x b t
» x=exp(-b*t)

x = exp(-b*t)

» v=sin(x)

v = sin(exp(-b*t))

» int(v,t)

ans = -sinint(exp(-b*t))/b

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Whoops. What the heck is sinint? Should've been cos.

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
I see sinint was defined in the help. Maybe the answer is correct.

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
At first glance it looked like an easy integral. It would be easy to find derivative of v(x(t)) with chain rule, but not so easy to find the integral. Matlab is probably right.

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top