From: Charles on
Hi, I want to modify how my plot looks in Matlab. Take for instance, if I plot
x=[-1 :1] and y=[0:1], the y axis is at -1 of x. is there a way to make the y-axis rest in the middle of the x-axis? I.e at x=0. Thanks.
From: someone on
"Charles " <nkwosman(a)yahoo.com> wrote in message <hq771p$qt6$1(a)fred.mathworks.com>...
> Hi, I want to modify how my plot looks in Matlab. Take for instance, if I plot
> x=[-1 :1] and y=[0:1], the y axis is at -1 of x. is there a way to make the y-axis rest in the middle of the x-axis? I.e at x=0. Thanks.

Download & try PlotAxisAtOrigin from the MATLAB FEX at:

http://www.mathworks.com/matlabcentral/fileexchange/10473-plotaxisatorigin
From: Charles on
Haven't tried it yet, but thanks a lot for your response.


"someone" <someone(a)somewhere.net> wrote in message <hq794o$54k$1(a)fred.mathworks.com>...
> "Charles " <nkwosman(a)yahoo.com> wrote in message <hq771p$qt6$1(a)fred.mathworks.com>...
> > Hi, I want to modify how my plot looks in Matlab. Take for instance, if I plot
> > x=[-1 :1] and y=[0:1], the y axis is at -1 of x. is there a way to make the y-axis rest in the middle of the x-axis? I.e at x=0. Thanks.
>
> Download & try PlotAxisAtOrigin from the MATLAB FEX at:
>
> http://www.mathworks.com/matlabcentral/fileexchange/10473-plotaxisatorigin
From: Charles on
Works perfect. Exactly what I wanted. Thanks a lot.
"someone" <someone(a)somewhere.net> wrote in message <hq794o$54k$1(a)fred.mathworks.com>...
> "Charles " <nkwosman(a)yahoo.com> wrote in message <hq771p$qt6$1(a)fred.mathworks.com>...
> > Hi, I want to modify how my plot looks in Matlab. Take for instance, if I plot
> > x=[-1 :1] and y=[0:1], the y axis is at -1 of x. is there a way to make the y-axis rest in the middle of the x-axis? I.e at x=0. Thanks.
>
> Download & try PlotAxisAtOrigin from the MATLAB FEX at:
>
> http://www.mathworks.com/matlabcentral/fileexchange/10473-plotaxisatorigin