Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1471
Number of posts: 2147

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Plotting functions Posted by jordan1988 on 29 Nov 2012 at 11:16 AM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.