Easy to use function plotter.
Syntax 
ezplot(f)
ezplot(f,[xmin xmax])
ezplot(f,[xmin xmax],fig)
Description 
ezplot(f) plots a graph of f(x), where f is a symbolic expression representing a mathematical expression involving a single symbolic variable, say x.  The domain on the x-axis is usually [-2*pi, 2*pi].
ezplot(f,[xmin xmax]) uses the specified x-domain instead of the default 
[-2*pi, 2*pi].
ezplot(f,[xmin xmax],fig) uses the specified Figure number instead of the current Figure. It also omits the title of the graph.
Examples 
Either of the following commands,
ezplot('erf(x)')
ezplot erf(x)
plot a graph of the error function::

The statement,
ezplot('sin(x)',[0 2*pi])
creates the plot:
 
Algorithm 
ezplot determines the interval of the x-axis by sampling the function between -2*pi and 2*pi and then selecting a subinterval where the variation is significant.  For the range of the y-axis, ezplot omits extreme values associated with singularities.
See Also 
fplot
[ Previous | Help Desk | Next ]