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

George
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
Walter Roberson 2012년 6월 17일

1 개 추천

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.

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

제품

태그

질문:

2012년 6월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by