Plotting functions - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Plotting functions

jordan1988jordan1988 Posts: 2Member
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
Sign In or Register to comment.