Hi all, I have the following problem:
A=[1,2,3,4,5,6,7,8,9,10];
t=1:1:8;
y1=A(1:t);
x1=mean(y1);
plot(t,x1)
I'd like to plot A(1:t) with respect to t, with t from 1 to 8.. what's wrong? Sorry but I cannot find the solution
www.freeimagehosting.net/dai8b
A=[1,2,3,4,5,6,7,8,9,10];
t=1:1:8;
y1=A(1:t);
x1=mean(y1);
plot(t,x1)
I'd like to plot A(1:t) with respect to t, with t from 1 to 8.. what's wrong? Sorry but I cannot find the solution
www.freeimagehosting.net/dai8b