Fplot Octave

Octave can plot a function from a function handle inline function or string defining the function without the user needing to explicitly create the data to be plotted. The function fplot also generates two-dimensional plots with linear axes using a function name and limits for the range of the x-coordinate instead of the x and y data. Fplot works best with continuous functions. Functions with discontinuities are unlikely to plot well. This restriction may be removed in the future. Fplot requires that the function accept and return a vector argument. Consider this when writing user-defined functions and use.,./, etc.

Description

ezplot(fun) plots the expression fun(x) over the default domain -2π < x < 2π, where fun(x) is an explicit function of only x.

fun can be a function handle, a character vector, or a string.

ezplot(fun,[xmin,xmax]) plots fun(x) over the domain: xmin < x < xmax.

For an implicit function, fun2(x,y):

ezplot(fun2) plots fun2(x,y) = 0 over the default domain -2π < x < 2π, -2π < y < 2π.

Fplot command octave

Plot Octave Options

ezplot(fun2,[xymin,xymax]) plots fun2(x,y) = 0 over xymin < x < xymax and xymin < y < xymax.

ezplot(fun2,[xmin,xmax,ymin,ymax]) plots fun2(x,y) = 0 over xmin < x < xmax and ymin < y < ymax.

ezplot(funx,funy) plots the parametrically defined planar curve funx(t) and funy(t) over the default domain 0 < t < 2π.

How To Plot Octave

ezplot(funx,funy,[tmin,tmax]) plots funx(t) and funy(t) over tmin < t < tmax.

ezplot(...,fig) plots into the figure window identified by fig. Use any of the input argument combinations in the previous syntaxes that include a domain. The domain options are [xmin xmax], [xymin xymax], [xmin xmax ymin ymax], and [tmin tmax].

ezplot(ax,...) plots into the axes ax instead of the current axes (gca).

h = ezplot(...) returns either a chart line or contour object.