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 ]
soclydeza

Posts: 3
Registered: 12/6/12
Vector summing while loop
Posted: Dec 6, 2012 9:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

How do you perform a while loop that sums a vector termwise?

example,

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

How would I find the sum off all these numbers using a while loop without actually using sum(x)?



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.