First, look over the examples in the ode45 doc.
Then figure out the order of your system, and that will tell you the size of your state vector. You have two 2nd order equations, so that means your state vector should be 2x2 = 4 elements. Using the nomenclature of the MATLAB doc to make things easier when you read them, I am going to call this state vector y. The definition of the y elements is:
y(1) = X
y(2) = Xdot
Y(3) = Y
y(4) = Ydot
Using those definitions, you need to write a derivative function. The outline of this function will look like this:
function dy = myderivative(t,y)
dy = zeros(size(y));
dy(1) = _____;
dy(2) = _____;
dy(3) = _____;
dy(4) = _____;
You need to fill in the blanks in the above code.
Since the derivative of X is just Xdot, the dy(1) line is easy ... it is just y(2). Similar for dy(3).
The dy(2) and dy(4) lines are more work for you. You need to solve your two equations above for Xdoubledot and Ydoubledot and then use those expressions to write code.
Once this is done, I suggest you look again at the examples in the ode45 doc, particularly the one for the system of equations. That will give you clues for writing your code that calls ode45.
Give this a shot and then come back when you have some code for us to look at that we can help you with.