function y = total(x) % TOTAL y = total(x) % Version of 8/1/93 % Total of all elements in matrix x. y = sum(sum(x));