Sum Of Array Elements Using Functions In Matlab