Help with MATLAB problem

Hello guys, I will work next summer session doing research with a professor and he asked me to do a couple of MATLAB problems using ODE solvers so I can get more familiar since I will be using it. One of the problems is about an object following a projectile motion and I need to solve it using ode15s and then plot the trajectory of the object.

It looks like everything is okay except for your acceleration value - why is your equation for acceleration -g/m?

If you look at your data, you will see that the object does move up before it goes down as it should. You have a typo in your 'Relevant Equations' section (what you have for y(3) should be under y(2)) but it appears you did that part correctly when you retyped it later on.

Also, fyi, you can use the 'axis equal' command to rescale the graph which may be appropriate for this exercise (both the x and y axes are in meters).