| Contents | Index |
plot::Ellipse2d(r1, r2,
) creates a 2D ellipse with center point
and semi-axes of lengths r1 and r2 for the horizontal and the vertical axis, respectively.
plot::Ellipse3d(r1, r2,
,
) creates a 3D ellipse with center point
and semi-axes of lengths r1 and r2 in the plane with the normal vector
.
Calls:
plot::Ellipse2d(r1, r2, <[cx, cy]>, <a = amin .. amax>, Options)
plot::Ellipse3d(r1, r2, <[cx, cy, cz], <[cx, cy, nz]>>, <a = amin .. amax>, Options)
Parameters:
|
r1, r2: |
the semi-axes of an ellipse. They must be real numerical values or arithmetical expressions of the animation parameter a. |
|
cx, cy, cz: |
the center. The coordinates cx, cy, cz must be real numerical values or arithmetical expressions of the animation parameter a. If no center is specified, the ellipse is centered at the origin. |
|
nx, ny, nz: |
the normal vector. The coordinates nx, ny, nz must be real numerical values or arithmetical expressions of the animation parameter a. If no normal vector is specified, the ellipse is created in the xy-plane. |
See Also:
plot, plot::Arc2d, plot::Arc3d, plot::Circle2d, plot::copy
Details:
The symmetry axes of the ellipse are parallel to the coordinate axes. Use plot::Rotate2d to create ellipses of different orientation.
If no center point is specified, an ellipse with center
or
, respectively, is created.
Example 1
We create a plot of an ellipse with center point
and semi-axes of lengths
and
:
ellipse := plot::Ellipse2d(3, 1, [1, 1]):
plot(ellipse)

We apply a rotation:
plot(ellipse, plot::Rotate2d(PI/4, [1, 1], ellipse))

delete ellipse:
Example 2
We plot an animated 3D ellipse:
plot(plot::Ellipse3d(1, 1, [0,0,0], [0,a,1-a], a = 0..1))


Example 3
We plot a colored 3D ellipse:
plot(plot::Ellipse3d(2, 1, [0,0,0], Filled,
LineColor=RGB::Yellow, LineColor2=RGB::Red, LineColorType = Dichromatic, FillColorDirection=[+1,0,0],
FillColor=RGB::Yellow, FillColor2=RGB::Red, FillColorType = Dichromatic, FillColorDirection=[-1,0,0]
))


Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |