Hello, I am making a function that creates a y value for a range of x values, say -7 to 7. I enter in x = (-7:7), put it through the function, and get values for Y. but then, when I plot it, the X axis is labeled according to column rather than value, as in the axis displays 0 through 15 rather than -7 to 7. how do I fix this?
MATLAB: Plot not displaying x axis correctly
functionsplots
Best Answer