Sum Matrix excluding certain values

9 次查看(过去 30 天)
MatrixA = [1:10 ; 21:30 ; 8:17]
how to sum all the elements inside matrix A, if the element is greater than 3?

采纳的回答

Adam Danz
Adam Danz 2019-12-4
y = sum(MatrixA(MatrixA > 3))

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by