The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: rotated ellipse in cartesian coordinates
Replies: 5   Last Post: Apr 8, 2015 12:17 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 22
Registered: 8/4/08
Re: rotated ellipse in cartesian coordinates
Posted: Dec 9, 2008 7:26 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Adam" <> wrote in message <ghlr2i$mi9$>...
> "Fabian" <> wrote in message <ghl5o5$29q$>...
> > I've got a matlab procedure that fits an ellipse to a set of points, my problem is that I only need a certain x range and x-step in cartesian coordinate system. Can somebody help me with a formula for y as a function of x and my ellipse (defined by [z, a, b, alpha] returned by fitellipse:)
> > %parameterised by 0 <= theta < 2*pi is:
> > X = Z + Q(alpha) * [a * cos(theta);b * sin(theta)]

> Does it have to be x and y? That would be awkward.
> Parametric form of an ellipse rotated counterclockwise by an angle k
> x = h + a * cos(t) * cos(k) - b * sin(t) * sin(k)
> y = k + b * sin(t) * cos(k) + a * cos(t) * sin(k)
> ~Adam

I need y for a certain range of x-values so it has to be x and y, is there a way?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.