is there anyway to put the main X and Y axis on a graph.....

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.

Risposte (1)

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 Commento

so say i want to graph of x^2. and put the axis in the center to see both sides and below it.... how ould i write that out in code

Questa domanda è chiusa.

Richiesto:

il 17 Feb 2011

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by