How to replace elements using logical operations?

Let A = [2 13 1; 2 5 16; 11 9 8]
What I want to do is for element that are less than 6, replace the element with 0.
How do I do this using for/if operation ?
Thanks in advance.

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2014년 5월 19일

답변:

2014년 5월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by