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!