Conversion to logical from sym is not possible. wanna do inequalities to syms
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all,
I am trying to solve inequalites and then apply condition as the attachment:



I understand I can not set condition to symbolic variables, but I just need to know if will fit the condition or not, so please any suggestions!
clear all;
clc;
syms x y real ;
yin2=[solve(-1>x+y,y), solve(x+y>20,y)];
% @ x=10
if -12>y && y>11
display('DONE')
else
display('again')
end
0 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!