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)

Risposte (1)

filter = find(x~=0 | y>=0)
You could also use
filter = find( or(x~=0, y>=0) )

Richiesto:

il 17 Mag 2020

Risposto:

il 17 Mag 2020

Community Treasure Hunt

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

Start Hunting!

Translated by