MATLAB EZ-Plot: Plotting Functions Based on Equations in MATLAB

AI Thread Summary
A user inquires about plotting a function in MATLAB using its defining equation instead of a set of coordinates. They specifically ask if it's possible to plot functions like sin(x) over a specified domain. The response confirms that this is achievable using the EZ-Plot function in MATLAB, providing a link to the relevant documentation. The user expresses satisfaction with the solution provided.
danago
Gold Member
Messages
1,118
Reaction score
4
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.
 
Physics news on Phys.org

Similar threads

Back
Top