DRAWPARABOLA Draw a parabola on the current axis.
drawParabola(PARABOLA);
Draws a vertical parabola, defined by its vertex and its parameter.
Such a parabola admits a vertical axis of symetry.
The algebraic equation of parabola is given by:
(Y - YV) = A * (X - VX)^2
Where XV and YV are vertex coordinates and A is parabola parameter.
A parametric equation of parabola is given by:
x(t) = t + VX;
y(t) = A * t^2 + VY;
PARABOLA can also be defined by [XV YV A THETA], with theta being the
angle of rotation of the parabola (in degrees and Counter-Clockwise).
drawParabola(PARABOLA, T);
Specifies which range of 't' are used for drawing parabola. If T is an
array with only two values, the first and the last values are used as
interval bounds, and several values are distributed within this
interval.
drawParabola(..., NAME, VALUE);
Can specify one or several graphical options using parameter name-value
pairs.
drawParabola(AX, ...);
Specifies handle of the axis to draw on.
H = drawParabola(...);
Returns an handle to the created graphical object.
Example:
figure(1); clf; hold on;
axis equal; axis([0 100 0 100])
% draw parabola with default parameterization bounds
drawParabola([50 50 .2 30]);
% draw parabola with more specific bounds and drawing style
drawParabola([50 50 .2 30], [-3 3], 'color', 'r', 'linewidth', 2);
See Also:
drawCircle, drawEllipse
Package: matgeom