Getting Simple Slope Of A Line

Welcome to our Forums Technical Support Support Desk Getting Simple Slope Of A Line

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6508
    charles phillips
    Participant

      Ok I started a User Showcase because I was getting some neat results, and now I have turned it into a “how do you do this?” post. Sigh. Can I switch it over here or just sort of continue the conversation here?

      I have a very simple graph and want to get just the slope of a straight line, have added a Fit function.

      ISON Objects RAAN Test (i=63) 71700 slope

      Slope is 0.112?

      ISON Objects RAAN Test (i=63) 71700 slope2

      Slope is 0.0311?

      #6509
      dgteam
      Moderator

        Hi Charles,

        We can probably move the post, but for now let’s try to answer your question.

        The Fit command article has a section on Fit results that shows how to view the output of the fit, including the slope.

        In your case, you have to be careful as the x axis is time.  The labels show the months but the actual underlying scale is in seconds.  The slope will be the change in y / change in x, where x is in seconds.

        For your first graph, the change in one month is about -5.  So you could have a ball park estimate of the slope:

        -5/(60*60*24*32) = -0.00000180844907  1/sec

        where is the unit is 1/sec.  If you wanted to have the change per day you would multiply by sec per day.

        Does that help?

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.

      Welcome to our Forums Technical Support Support Desk Getting Simple Slope Of A Line