using relational operators with the symbolic math toolbox?
古いコメントを表示
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?
採用された回答
その他の回答 (1 件)
Andrew Newell
2011 年 2 月 19 日
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
カテゴリ
ヘルプ センター および File Exchange で Properties and Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!