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.(adsbygoogle = window.adsbygoogle || []).push({});

Regards,

djdato

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Graphing y=x

Tags:

**Physics Forums | Science Articles, Homework Help, Discussion**