How to find if a symbolic operation contains a or function?

1 次查看(过去 30 天)
I'm trying to find if a symbolic equation has the 'or' function or not.
I have tried to do this:
syms a b
has(a|b,'or') % logical 0
has(or(a,b),'or') % logical 0
I don't know if this is a bug. Do you know other ways to do this?
Thank you

采纳的回答

Walter Roberson
Walter Roberson 2020-11-18
hasSymType(a|b, 'or')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by