Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plotting a function - MATLAB

  1. Sep 14, 2009 #1

    danago

    User Avatar
    Gold Member

    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.
     
  2. jcsd
  3. Sep 15, 2009 #2

    MATLABdude

    User Avatar
    Science Advisor

  4. Sep 16, 2009 #3

    danago

    User Avatar
    Gold Member

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook