Write a function that computes the sum of all elements of the input array v without using the built-in sum function.
The input v may be a vector or a matrix of any size.
If the input is em, the function must return 0.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!