How to use "OR" in find function?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Walter Roberson
le 17 Mai 2020
filter = find(x~=0 | y>=0)
You could also use
filter = find( or(x~=0, y>=0) )
0 commentaires
Voir également
Catégories
En savoir plus sur Signal Generation and Preprocessing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!