using relational operators with the symbolic math toolbox?
Afficher commentaires plus anciens
is there anyway i can use relational operators with the symbolic math toolbox? i have read the other answer for the same question and it wasn't very clear to me. could someone please explain?
Réponse acceptée
Plus de réponses (1)
Andrew Newell
le 19 Fév 2011
If you have assigned numeric values to your symbolic variables, you could do something like this:
syms x y
x = 1; y = 2;
if double(y) > double(x)
disp('True is true!')
else
disp('Doubleplusungood.')
end
Catégories
En savoir plus sur Properties and Assumptions dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!