Need help with symbolic variables (if else statement)
7 views (last 30 days)
More Answers (1)
Adam Danz on 13 Jul 2018
According to your comments, 'a' is a symbol symbolizing a scalar number. If that's the case, you can convert 'a' to numerical.
a = sym('3.14159');
a = double(a); % Convert to double
if a > 10^-8
If you prefer to keep 'a' in the sym class, use Walter's answer.