Solve a system of two variable inequalities with symbolic toolbox
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
LUCA D'AMBROSIO
am 1 Jul. 2024
Kommentiert: LUCA D'AMBROSIO
am 2 Jul. 2024
Hello,
is it possible to symbolically solve a system of inequalities with variables x and y and plot the result?
lets say i have to solve x+y-25>0 and x*y+y+15>0, what function should i use?
i have tried fimplicit plus assumptions but it didn't work.
thank you
0 Kommentare
Akzeptierte Antwort
John D'Errico
am 1 Jul. 2024
fimplicit does not plot inequalities. Sorry. If you read the help, it never says anything about inequalities.
Simplest is to just use meshgrid. For example...
[X,Y] = meshgrid(linspace(-50,50,1000));
k = (X + Y - 25 > 0) & (X.*Y + Y + 15 > 0);
plot(X(k),Y(k),'.')
Weitere Antworten (1)
Torsten
am 1 Jul. 2024
Verschoben: Torsten
am 1 Jul. 2024
is it possible to symbolically solve a system of inequalities with variables x and y ?
What do you mean by "solve" ? The feasible set is given by the set of inequalities, and in most cases it is not possible to find an easier representation.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!