I have this marix
A= [ 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 3 3 3]
How can I take only value less than 3? The result should be :
A=[1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1]
I use this code , but its wrong
B=A(1:find(A==3)(1))

 채택된 답변

madhan ravi
madhan ravi 2019년 1월 4일

1 개 추천

A(A<3)

댓글 수: 2

fyza affandi
fyza affandi 2019년 1월 4일
Thank you very much
madhan ravi
madhan ravi 2019년 1월 4일
Anytime :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Robotics에 대해 자세히 알아보기

질문:

2019년 1월 4일

댓글:

2019년 1월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by