Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting iso-distance curves from matrices

  • To: mathgroup at
  • Subject: [mg71003] Re: [mg70958] Plotting iso-distance curves from matrices
  • From: Carl Woll <carlw at>
  • Date: Sat, 4 Nov 2006 04:08:16 -0500 (EST)
  • References: <>

Uwe Ziegenhagen wrote:

>I would like to plot iso-distance curves (in 2 dimensions) satisfying
>the following condition:
>{ x \in R^2 | (x-x_0)^T A (x-x_0) = d^2}
>with x a 2x1 vector, ^T denoting the transposed sign and A a positive
>definite matrix. Any way to do it in Mathematica?
Use ContourPlot. For example:

a = Table[ Random[], {2}, {2}];

ContourPlot[{x-2,y-1}.a.{x-2,y-1}, {x,-5,5}, {y,-5,5}]

Carl Woll
Wolfram Research

  • Prev by Date: Tricky visualization of maximization problem
  • Next by Date: Re: Programming style: postfix/prefix vs. functional
  • Previous by thread: Plotting iso-distance curves from matrices
  • Next by thread: run jsp in webMathematica from Workbench?