What is the difference between fplot and ezplot
25 次查看(过去 30 天)
显示 更早的评论
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 个评论
George
2013-9-11
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);
回答(1 个)
Walter Roberson
2012-6-17
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!