Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Plotting functions

$
0
0
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

Viewing all articles
Browse latest Browse all 2703

Trending Articles