- #1

- 19

- 0

% A is an m-by-n matrix.

%p and q are indices with the property that |A(p,q)|>=|A(i,j)|

% for all i and j that satisfy 1<=i<=m, 1<=j<=n.

2) function s = totalSum(A)

% A is an m-by-n matrix

% s is the sum of all the values in A

complete them without using built in functions.

3) I've tried to look these up on help but these are not helping. I've tried to create the matrix with an index but this is not working. I think i know how to do a for loop but should i know anything when referring to the function at hand??

Thanks