Matlab ODE Problem (paritcle trajectory)

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
intrepid44
Messages
3
Reaction score
0
Hi, I currently have this problem to solve, and I'm quite stuck. I would much appreciate it if anyone could point me in the direction on how to solve it.

m1.png


This is my go at it, although currently I don't have access to MATLAB until tomorrow as the university library has now closed.

m2.png


Is this the correct way to get the motion? If I then turn it into a function?

Many thanks.

Regards,
intrepid44
 
Physics news on Phys.org
The last bit should be: >> f = @(t,z) [z(2);-1.962*z(1)-2.943];
 
Got it sorted, never mind.