Results 1 to 2 of 2

Math Help - Matlab atan2

  1. #1
    Junior Member
    Joined
    May 2008
    Posts
    50

    Matlab atan2

    Any ideas why this atan2 command doesn't work? I need the theta values in radians, not degrees. Thanks, Kim


    weight = 4000;
    lengthA = 1.0;
    lengthB = 1.8;
    lengthL = 0.7;
    retracted = 5;
    deployed = 90;
    theta = linspace(retracted, deployed);

    alpha = atan2((lengthA * sin(theta)) ./ (lengthL - lengthA * cos(theta)));
    force = weight *((lengthB * cos(theta)) ./ (lengthA * cos(90 - theta - alpha)));
    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 Kim Nu View Post
    Any ideas why this atan2 command doesn't work? I need the theta values in radians, not degrees. Thanks, Kim


    weight = 4000;
    lengthA = 1.0;
    lengthB = 1.8;
    lengthL = 0.7;
    retracted = 5;
    deployed = 90;
    theta = linspace(retracted, deployed);

    alpha = atan2((lengthA * sin(theta)) ./ (lengthL - lengthA * cos(theta)));
    force = weight *((lengthB * cos(theta)) ./ (lengthA * cos(90 - theta - alpha)));
    Lat time I looked atan2 requires two arguments.

    type "help atan2" (without the quotes) at the command line.

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Understanding atan2 formula
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: September 16th 2011, 04:59 AM
  2. matlab help
    Posted in the Math Software Forum
    Replies: 1
    Last Post: December 5th 2009, 05:08 AM
  3. i need your help .......Matlab
    Posted in the Math Software Forum
    Replies: 4
    Last Post: April 4th 2009, 04:36 AM
  4. Matlab Please help me
    Posted in the Math Software Forum
    Replies: 8
    Last Post: November 10th 2008, 04:40 PM
  5. Matlab
    Posted in the Math Software Forum
    Replies: 0
    Last Post: November 6th 2008, 08:46 AM

Search Tags


/mathhelpforum @mathhelpforum