How to plot inequalities

前端 未结 3 1033
忘了有多久
忘了有多久 2020-11-28 13:29

I would like to plot the following inequalities: y < p2(1 - p1) and x < p1(1 - ( y / (1 -

3条回答
  •  时光取名叫无心
    2020-11-28 14:33

    Try this: The red area is where both inequalities are satisfied.

    [X,Y]=meshgrid(0:0.01:1,0:0.01:1); % Make a grid of points between 0 and 1
    p1=0.1; p2=0.2; % Choose some parameters
    ineq1 = Y

    enter image description here

提交回复
热议问题