From: Fernando Sobral on
"Fernando Sobral" <fesoceano(a)gmail.com> wrote in message <i3a7ub$1i0$1(a)fred.mathworks.com>...
> "us " <us(a)neurol.unizh.ch> wrote in message <i39kf9$bt9$1(a)fred.mathworks.com>...
> > "Fernando Sobral" <fesoceano(a)gmail.com> wrote in message <i39hjc$5lu$1(a)fred.mathworks.com>...
> > > Hi,
> > >
> > > I'm working with wave and tide data and I have two vectors (one of waves data and another with tides data) that has different lenghts. Waves data starts in march 2008 and ends in march 2009, but the tides data starts on july 2008 and ends in march 2009 also. I'm trying to make a subplot 211 with the waves data and other 212 with tides, but I need that the plot starts exactly in july 2008 of waves data, more or less in the middle of window.
> > > If anyone knows how I can do that, I will be very greatfull.
> > > Thanks
> >
> > one of the many solutions
> >
> > line(1:10,rand(1,10),'marker','s');
> > set(gca,'xlim',[-10,20]); % <- set the axis's limit...
> > line(-5:5,rand(1,11)+1,'marker','o');
> >
> > us
>
> Hi us,
> this really works, thank you very much!
> I just needed to find the position of the date in the wave data and use it how a negative value like this:
> xlim([-(position of the date in the wave data) length(wave data)])
> very simply and really helpfull.
> Thanks again

Ah, I was trying to don't use the interpolation in wave data.....