mySum - index = 1 while index<= length(A x = A(index...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 function mySum = mySum(A) % computes the sum of the elements in the given vector mySum = 0
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: index = 1 while index <= length(A) x = A(index) mySum = mySum + x index = index + 1 end end...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online