draw an ellipse centered at \((0,0)\) with \(a=2,b=1\) being its semi-major and minor.
The ellipse equation for the above is \(\frac {x^2}{a^2}+\frac {y^2}{b^2}=1\)
draw an ellipse centered at \((1,2)\) with \(a=2,b=1\) being its semi-major and minor. The ellipse equation for the above is \(\frac {x^2}{a^2}+\frac {y^2}{b^2}=1\)
Matlab close all; a=2; b=1; t=linspace(0,2*pi,50); plot(a*cos(t)+1,b*sin(t)+2) axis equal xlim([-1,4]); ylim([0,4]);
|
|
draw an ellipse centered at \((0,0)\) with \(a=2,b=1\) being its semi-major and minor titlted at angle \(\theta =30\,\text {degrees}\) anti-clockwise.
The ellipse equation for the above is \(\frac {x^2}{a^2}+\frac {y^2}{b^2}=1\). After drawing it, we rotate it.
Mathematica a = 2; b = 1; Graphics[ Rotate[ {Circle[{0, 0}, {a, b}], Line[{{-a, 0}, {a, 0}}], Line[{{0, -b}, {0, b}}] } , 30 Degree ] , Axes -> True ]
|
|