How to plot inequalities

前端 未结 3 1034
忘了有多久
忘了有多久 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:32

    I think this method is easy to understand. Make a surface plot and rotate it to top view.

    v = -5:0.1:5;
    p1 = 0.1;
    p2 = 0.2;
    [x,y] = meshgrid(v);
    ineq1 = y

提交回复
热议问题