Checking whether a symbolic expression is an equality or inequality?
Show older comments
I have the following code involving symbolic variables and symbolic equations:
a = sym;
eqn1 = a <= 10;
eqn2 = a == 10;
I would like to check (programmatically) that the symbolic object in eqn1 represents an inequality (less than) and eqn2 represents an equality. Is possible to do so?
Thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!