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

Graphing y=x

Tags:
  1. Apr 4, 2009 #1
    I am new to Matlab and i need to plot a function. However, using y=x as an example it always comes up saying that x is not defined. How do i plot the function without specifying a specific value for x? Graphing y=x is not my real problem. I am used to using TI-83/4 graphics calculators and typing a function like y=x^2 and just graphing it. But i can't do it on matlab as it always needs me to define x.

    Regards,
    djdato
     
    Last edited: Apr 4, 2009
  2. jcsd
  3. Apr 4, 2009 #2

    CompuChip

    User Avatar
    Science Advisor
    Homework Helper

    My advice is: RTM
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook