Solving Differential Equations in matlab

  • #1
I have following Differential Equations

a1*x2+b2*x1-c*cos(int(x3))*x4=d
-c*cos(int(x3))*x2-a2*sin(int(x3))+b2*x4=0

where a1,b2,c,d,a2,b2 are constants and x1=theta_dot; x2=theta_ddot; x3=alpha_dot; x4=alpha_ddot

I want to solve these equations for x1,x2,x3,x4 and want to plot with time.
 

Answers and Replies

  • #2
f95toli
Science Advisor
Gold Member
3,004
497
Just look up Ode23 (or maybe Ode45, try both) in the help...
 

Related Threads on Solving Differential Equations in matlab

  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
8
Views
6K
Replies
1
Views
2K
Replies
0
Views
682
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
6
Views
583
Replies
5
Views
4K
Replies
2
Views
7K
Top