draw an ellipse centered at
The ellipse equation for the above is
draw an ellipse centered at
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
The ellipse equation for the above is
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 ]
|
|