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()?

1 次查看(过去 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.

采纳的回答

Mouhamed Niasse
Mouhamed Niasse 2021-6-24

更多回答(1 个)

Cris LaPierre
Cris LaPierre 2021-6-24
Hint: logical indexing.
Ch 12 of MATLAB Onramp.

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

产品


版本

R2014a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by