MATLAB: What is differance between plot of a function and ezpolt of a function?And how can we achieve same plot by these two

plotting

for example x=-pi:pi y=sin(x.^2) find ezplot and plot

Best Answer

The main difference is
  • ezplot accepts a function as input
  • plot accepts (x,y) data and plots it
Have you carefully read the documentation for these two functions?
Related Question