PDA

View Full Version : Plotting a function - MATLAB


danago
Sep14-09, 10:06 PM
Hey.

Im trying to make a plot of a function, and was wondering if there was a way to plot it based on the equation that defines the function rather than a set of points on the curve?

i.e. instead of plot(x,y) for a set of (x,y) coordinates, id like to just specify the defininig equation (eg. sin(x)) and a domain.

Is this possible in matlab?

Sorry if i wasn't clear.
Thanks,
Dan.

MATLABdude
Sep15-09, 05:59 AM
In fact, there is! EZ-Plot:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ezplot.html

danago
Sep17-09, 12:04 AM
In fact, there is! EZ-Plot:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ezplot.html

Exactly what i was after :smile: Thanks very much!