I am trying to implement this function so that it returns the sum of all the values in the m-by-n matrix A without using the buit in function sum
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Kevin Junior
el 8 de Oct. de 2013
Respondida: Walter Roberson
el 8 de Oct. de 2013
function s = totalsum(A)
%A is an m-by-n matrix
%s is the sum of all the values in A
I dont know where to start.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!