I have a set of coupled ODE's which I wish to solve with MATLAB. The equations are given below.
I have 4 boundary conditions: x(0), y(0), v(0), theta(0). If I try to solve this with dsolve
I get the warning that an explicit solution could not be found.
Here's the code that I used.
syms x(t) y(t) v(t) theta(t)
% params
m = 80; %kg
g = 9.81; %m/s^2
c = 0.72; %
s = 0.5; %m^2
theta0 = pi/8; %rad
y0 = 0; %m
rho = 0.94; %kg/m^3
% component velocities
xd = diff(x,t) == v*cos(theta);
yd = diff(y,t) == v*sin(theta);
% Drag component
D = c*rho*s/2*(xd^2+yd^2);
% Acceleration
vd = diff(v,t) == -D/m-g*sin(theta);
% Angular velocity
thetad = diff(theta,t) == -g/v*cos(theta);
cond = [v(0) == 10,y(0) == 0, x(0) == 0, theta(0) == theta0];
dsolve([xd yd vd thetad],cond)