Why does sum([]) equal to zero?
Show older comments
Executing the following gives zero as the result.
sum([])
I expect an error or an empty matrix as the answer.
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!