From: Keyur Patel on
I have to plot x versus y and I have both the variables defined y is a vector of length 3619 and x is also 3619. x is the amount of rows and I want to plot (x,y) going in intervals of 100 rows. i.e. 1:100 2:101 3:102.
any suggestions on how to do this.
From: TideMan on
On Aug 5, 3:09 pm, "Keyur Patel" <patel_...(a)yahoo.com> wrote:
> I have to plot x versus y and I have both the variables defined y is a vector of length 3619 and x is also 3619. x is the amount of rows and I want to plot (x,y) going in intervals of 100 rows. i.e. 1:100 2:101 3:102.
> any suggestions on how to do this.

I can't figure out from your post what it is you want to do.
Can you be more specific?

From: Walter Roberson on
Keyur Patel wrote:
> I have to plot x versus y and I have both the variables defined y is a
> vector of length 3619 and x is also 3619. x is the amount of rows and I
> want to plot (x,y) going in intervals of 100 rows. i.e. 1:100 2:101
> 3:102. any suggestions on how to do this.

That would require 3520 plots (or lines), with a messy overlap. In view
of the alternatives, are you sure this is wise? Perhaps, for example,
you might want to plot 1:100 101:200 201:300 and so on.

LX = length(x);
for K = 1 : 100 : LX
plot(x(K:min(K+99,LX)), y(K:min(K+99,LX)));
drawnow
end