Results 1 to 3 of 3

Math Help - [SOLVED] Matlab Help

  1. #1
    Junior Member
    Joined
    Jan 2010
    Posts
    38

    [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!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by lvelazquez83 View Post
    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:

    >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:

    >R=linspace(3.8e8,4.0e8,10);

    Now use the appropriate equation to calculate the gravitational force:

    >F=(G*MM*ME)./R.^2

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Jan 2010
    Posts
    38
    Quote Originally Posted by CaptainBlack View Post
    Start by defining a variable to be the universal gravitational constant:

    >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:

    >R=linspace(3.8e8,4.0e8,10);

    Now use the appropriate equation to calculate the gravitational force:

    >F=(G*MM*ME)./R.^2

    CB

    THIS WAS OF GREAT HELP! thank you very much!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: March 28th 2010, 09:24 AM
  2. [SOLVED] Help w/ Matlab
    Posted in the Math Software Forum
    Replies: 33
    Last Post: March 3rd 2010, 03:49 PM
  3. [SOLVED] Matlab: using law of cooling
    Posted in the Math Software Forum
    Replies: 12
    Last Post: February 7th 2010, 11:06 PM
  4. [SOLVED] MATLAB disp() function doesn't cut it...
    Posted in the Math Software Forum
    Replies: 2
    Last Post: November 12th 2009, 02:36 PM
  5. [SOLVED] Matlab plotting help:peicewise with loops
    Posted in the Math Software Forum
    Replies: 4
    Last Post: October 20th 2009, 09:19 PM

Search Tags


/mathhelpforum @mathhelpforum