What is the difference between fplot and ezplot

They can both take nonNumeric-Symbolic expression as input and plot a graph. Is there some difference between them that I need to be aware of?

1 Kommentar

George
George am 11 Sep. 2013
ezplot returns a handle to the plot objects created; fplot returns the [X,Y] points created.
Use the former to manipulate the style after drawing: fh=ezplot(f,xl); set(fh,'Color','r','LineWidth',2);
Use the latter to set the style at the same time: [x, y]=fplot(f,xl); plot(x,y,'r-','LineWidth',2);

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 17 Jun. 2012

1 Stimme

fplot() generates one plot line per output column, from a vector input.
ezplot() with 2 variables generates an implicit plot of the expression evaluating to 0.

Kategorien

Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 17 Jun. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by