03-23-2009 06:56 AM
Hi,
I've been trying to plot the ellipse with the equation on Page 232, Q E7.3 of Dr. Robert H. Bishop's book.
I am currently stuck as I am unable to find a solution for this. Below is the equation which is required to
be used.
r^2= A^2*B^2/(A^2*sin^2(ф)+B^2cos^2(ф))
inputs are A, B and r with 0 <= ф <= 2*pi
Anyone got a suggestion on this? Thanks a million!
Solved! Go to Solution.
03-23-2009 07:43 AM - edited 03-23-2009 07:44 AM
03-23-2009 09:06 AM
03-23-2009 10:19 AM
I just built a VI to graph an ellipse with that equation and it works fine, although R is not an input.
Looks like "A" is the X-axis radius, and "B" is the Y-axis radius.
What part are you having trouble with?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-23-2009 10:28 AM
Hi Steve Bird
Up until now I am able to plot the ellipse but the direction of the ellipse is not the same as in Robert's book.
In Robert's book, the ellipse is displayed horizontally but mine is displayed vertically. Any idea how do i rotate
the ellipse?
Thank you.
03-23-2009 10:38 AM
If "A" is the X-axis radius, and "B" is the Y-axis radius, then what happens if you swap A and B?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-23-2009 11:22 AM
Typically, you can eliminate all trigonometry by using complex math. xy graphs directly accept complex numbers, in which case they will graph in the complex plane. That's what you want!
Here is an example I made long ago in LabVIEW 7.0 (Ellipse2.vi), maybe it can give you a few more ideas. 🙂
(see also this old thread)
03-24-2009 10:48 AM
Hi Chris M, Steve Bird, Altenbach
U guys have been a great help!
Thanks!!
10-06-2016 06:24 PM
Absolutely perfect. Thanks!