Filtering Values in Matlab in the Same Matrix Size

8 次查看(过去 30 天)
I have a matrix 3x3.
I want to see numbers greater than 5.
so
A = [2 5 8; 2 6 7; 1 9 5]
the answer will be
Ans = [0 0 8; 0 6 7; 0 9 0]
Thanks şn advance for your help

采纳的回答

KSSV
KSSV 2023-10-26
A = [2 5 8; 2 6 7; 1 9 5] ;
A(A<=5) = 0
A = 3×3
0 0 8 0 6 7 0 9 0

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matched Filter and Ambiguity Function 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by