| MATLAB Central > MATLAB Newsreader > Issues with atan2 function.. please advise! |
|
|
|
Subject: Issues with atan2 function.. please advise! From: DRG Date: 8 Dec, 2008 10:59:14 Message: 1 of 5 |
|
Hey folks; I have written a program that utilises the atan2 function, |
|
Subject: Issues with atan2 function.. please advise! From: DRG Date: 8 Dec, 2008 14:50:12 Message: 2 of 5 |
|
I should mention that the problem may have something to do with the |
|
Subject: Issues with atan2 function.. please advise! From: David Date: 8 Dec, 2008 16:14:02 Message: 3 of 5 |
|
me thinks its a logic problem, not atan2. note that atan2 has a range of -pi to +pi. when you compute theta and phi you are taking gamma (a product of atan2) which therefore has a range of -pi to +pi and adding/subtracting beta (a product of an asin) which has a range of -pi/2 to +pi/2. so the lines: |
|
Subject: Issues with atan2 function.. please advise! From: Roger Stafford Date: 8 Dec, 2008 16:59:02 Message: 4 of 5 |
|
DRG <grimesd2@gmail.com> wrote in message <6f0f0e86-f955-43bc-a085-588a9cea560e@j32g2000yqn.googlegroups.com>... |
|
Subject: Issues with atan2 function.. please advise! From: DRG Date: 9 Dec, 2008 13:26:51 Message: 5 of 5 |
|
Thanks guys, that does indeed seem to work now. Thanks for taking a |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
