ELLIPS |
Creates ellipse.
Synopsis:
[X,Y] = ellips(Center,Shape,radius,n)
[X,Y,Z] = ellips(Center,Shape,radius,n)
Description:
This function interpolates ellipse by lines in 2d space
or by patches in 3d space respectivelly. The ellipsoid
is described as
radius^2=(x-Center)'*Shape*(x-Center).
The number of lines used for interpolation is given
by argument n in 2d case. In 3d case the argument
n has the same meaning in the Matlab function sphere(n).
Input:
Center [2x1] or [3x1] Center of the ellipse.
Shape [2x2] or [3x3] Shape of the ellipse.
n [1x1] Density of interpolation (default 20).
Example:
2d ellipse
[x,y] = ellips([1;1],[1 0.5;0.5 1],1);
figure; plot(x,y);
3d ellipsoid
[x,y,z] = ellips([1;1;1],[1 0 0;0 2 0; 0 0 3],1);
figure; mesh(x,y,z);
About: Statistical Pattern Recognition Toolbox
(C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac
Czech Technical University Prague
Faculty of Electrical Engineering
Center for Machine Perception
Modifications:
30-apr-2004, VF
13-Feb-2003, VF
24-6-2000 V. Hlavac, comments polished.