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
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Kevin Junior
il 8 Ott 2013
Risposto: Walter Roberson
il 8 Ott 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!