is there anyway to put the main X and Y axis on a graph.....
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I had to make graphs for a math project adn i know how to graph the equations and stuff but is there a way to put the main X and Y axis on the graph. through the orign so i can tell exactly where the zeros are.
Answers (1)
Andrew Newell
on 17 Feb 2011
There is a really nice function called axescenter in the File Exchange. EDIT: Click on the link and download it.
I'll let you figure out how to plot x^2 for x between -1 and 1. Then do the following:
axis([-1 1 -1 1])
axescenter
1 Comment
Juan
on 17 Feb 2011
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!