How to plot those ineq in matlab

Antworten (1)

Matt J
Matt J am 5 Jan. 2020
Bearbeitet: Matt J am 5 Jan. 2020

0 Stimmen

One way is to use lcon2vert downloadable from here,
A=[-3 -2;1 -1; -1/5 1]; b=[-6;1;1];
V=lcon2vert(A,b);
plot(polyshape(V))
image.png

2 Kommentare

dorel blasciuc
dorel blasciuc am 6 Jan. 2020
HY, thank you for the response. I have to use sym for the values and it should work for any system of inequalties(es: {x^2-4<0, x+y-1<0). I am new to matlab and from simple examples to this is a bit too much...
Matt J
Matt J am 6 Jan. 2020
I don’t think it’s possible. Finding the feasible region of general inequalities is nontrivial...

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 5 Jan. 2020

Kommentiert:

am 6 Jan. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by