In matlab check how many times 2 displayed in given matrix A=[14 2 4 2 6 7 8 2 4 5 9 2 3 2 45 2] hint: sum()?
4 次查看(过去 30 天)
显示 更早的评论
matrix A=[14 2 4 2 6 7 8 2 4 5 9 2 3 2 45 2]
using logical indexing and sum() function.
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!