How to use "OR" in find function?
이전 댓글 표시
This function get out the value of zeros
filter = find(x~=0)
now to write "or y>=0" in this function ?
ex:
filter = find(x~=0 or y>=0)
답변 (1개)
Walter Roberson
2020년 5월 17일
filter = find(x~=0 | y>=0)
You could also use
filter = find( or(x~=0, y>=0) )
카테고리
도움말 센터 및 File Exchange에서 Digital Filter Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!