Prev: lcc error with uint 64
Next: Get string from file
From: Ken on 26 Mar 2010 07:08 Hi I want to plot the points '*' on the existing graphs: [ax, h1, h2] = plotyy(x,y1, x,y2); hold on scatter(x(1), y1(1), '*'); hold off It plots scatter on a seperate window. I want it on the same window. I know it is possible, but don't know how. Can you tell me how to do it? Thanks, -ken
From: mat001 on 26 Mar 2010 07:13 "Ken " <kk61(a)cornell.edu> wrote in message <hoi4ik$3jv$1(a)fred.mathworks.com>... > Hi > > I want to plot the points '*' on the existing graphs: > > [ax, h1, h2] = plotyy(x,y1, x,y2); > hold on > scatter(x(1), y1(1), '*'); > hold off > > It plots scatter on a seperate window. > > I want it on the same window. I know it is possible, but don't know how. > Can you tell me how to do it? > > Thanks, > > -ken try subplot
From: Ken on 26 Mar 2010 07:18 subplot doesn't work. It plots on a separate graph. I want it on the same graph. I know there is a way to do it, but I don't know how. "Ken " <kk61(a)cornell.edu> wrote in message <hoi4ik$3jv$1(a)fred.mathworks.com>... > Hi > > I want to plot the points '*' on the existing graphs: > > [ax, h1, h2] = plotyy(x,y1, x,y2); > hold on > scatter(x(1), y1(1), '*'); > hold off > > It plots scatter on a seperate window. > > I want it on the same window. I know it is possible, but don't know how. > Can you tell me how to do it? > > Thanks, > > -ken
From: Jomar Bueyes on 26 Mar 2010 07:58 On Mar 26, 7:18 am, "Ken " <k...(a)cornell.edu> wrote: > subplot doesn't work. It plots on a separate graph. I want it on the same graph. > I know there is a way to do it, but I don't know how. > > "Ken " <k...(a)cornell.edu> wrote in message <hoi4ik$3j...(a)fred.mathworks.com>... > > Hi > > > I want to plot the points '*' on the existing graphs: > > > [ax, h1, h2] = plotyy(x,y1, x,y2); > > hold on > > scatter(x(1), y1(1), '*'); > > hold off > > > It plots scatter on a seperate window. > > > I want it on the same window. I know it is possible, but don't know how.. > > Can you tell me how to do it? > > > Thanks, > > > -ken use scatter(gca, ...) that forces "scatter" to use the current axes. HTH Jomar
|
Pages: 1 Prev: lcc error with uint 64 Next: Get string from file |