In case anyone is interested, I did figure something out. It added a few lines to the code, but it did make the loop a bit prettier.
%sets initial position and velocity values for x and y
%(z and w are the velecities of x and y, respectively)
X0=[4 0 0 0.5];
%initializes the time variable (x...
1. For this problem, we are asked to design a MatLab/Octave code that will calculate and plot the orbit of a sattelite
2. We are given the following 2nd order equations
x''= \frac{-x}{( \sqrt{x^{2}+y^{2}})^{3}}
y''= \frac{-y}{( \sqrt{x^{2}+y^{2}})^{3}}
We can convert this into the...