How to use "OR" in find function?
8 ビュー (過去 30 日間)
古いコメントを表示
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)
0 件のコメント
回答 (1 件)
Walter Roberson
2020 年 5 月 17 日
filter = find(x~=0 | y>=0)
You could also use
filter = find( or(x~=0, y>=0) )
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Signal Generation and Preprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!