how to plot inequality and their intersection ?
9 views (last 30 days)
I want to plot these inequalities.
how can I plot them (the lines where they bind) and the area which they contain? I want to find a solution with the intersection of those areas later.
I want to have something like this. with stripped areas representing the inequality areas, which can be colored in matlab.
Thank you so much
Matt J on 14 Oct 2021
Edited: Matt J on 14 Oct 2021
The region prescribed by your inequalities is unbounded, so it is not clear what it means to "plot" it. If you really meant x<=2, then the region will be bounded and you can use lcon2vert (Download) as follows,
A=[-1 -1; %inequalities in matrix/vector form