Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Vector summing while loop
Replies: 2   Last Post: Dec 7, 2012 12:49 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
neuronet

Posts: 24
Registered: 10/18/12
Re: Vector summing while loop
Posted: Dec 7, 2012 12:49 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

x = [1,23,43,72,87,56,98,33]

x_sum=0;
ii=0;
while ii<length(x)

{update ii and x_sum each cycle through while}

end



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.