How to sum matrix value?
2 次查看(过去 30 天)
显示 更早的评论
I need to sum value in matrix but I can't use "sum". So, Can I sum value in matrix with if-else or while loop? How to create it. Assume I have matrix C=[ 1 2 3 4 5 6 7 8 9 ]
Thank You
1 个评论
the cyclist
2015-5-9
Because you "can't use sum", I assume this homework. Show what you've tried so far, and maybe we can give you some hints.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!