[SOLVED] Matlab Help
I am really struggling with how to use matlab. If anyone could help me with using the software i would greatly appreciate it.
The problem i am trying to solve using matlab is as follows:
Find the force the moon exerts on the earth for 10 distances between 3.8 x 10^8m and 4.0 x 10^8m.
If anyone can walk me through some steps it would be very helpful! i have tried and tried but i can not figure this out. thanks in advance!
Start by defining a variable to be the universal gravitational constant:
Originally Posted by lvelazquez83
>G= .... ; % replace .... by the value in your notes or from Google
Now define a variable to hold the mass of the moon in kg:
>MM= .... ; % replace .... by the value from your notes or from Google
Now define a variable to hold the mass of the Earth in kg:
>ME= .... ; % replace .... by the value from your notes or from Google
set up an array with the distances you want:
Now use the appropriate equation to calculate the gravitational force:
Originally Posted by CaptainBlack
THIS WAS OF GREAT HELP! thank you very much!