Plots in two-dimensions the curve defined by f. The function f may be a string, inline function or function handle and can have either one or two variables. If f has one variable, then the function is plotted over the domain
-2*pi <
x< 2*pi
with 500 points.If f has two variables then f
(
x,
y) = 0
is calculated over the meshed domain-2*pi <
x|
y< 2*pi
with 60 by 60 in the mesh. For exampleezplot (@(x, y) x .^ 2 - y .^ 2 - 1)If two functions are passed as strings, inline functions or function handles, then the parametric function
x = fx (t) y = fy (t)is plotted over the domain
-2*pi <
t< 2*pi
with 500 points.If dom is a two element vector, it represents the minimum and maximum value of x, y and t. If it is a four element vector, then the minimum and maximum values of x and t are determined by the first two elements and the minimum and maximum of y by the second pair of elements.
n is a scalar defining the number of points to use in plotting the function.
The optional return value h provides a list of handles to the the line objects plotted.
The following code
ezplot (@cos, @sin)
Produces the following figure
![]() |
The following code
ezplot ("1/x")
Produces the following figure
![]() |
The following code
ezplot (inline("x^2 - y^2 = 1"))
Produces the following figure
![]() |