필터 지우기
필터 지우기

I am given set of five linear inequalities how to plot the graph showing the common area

조회 수: 9 (최근 30일)
How can I draw 2D plot for these set of linear inequalities with ki representing x-axis and kd representing y-axis.The common area that is a convex polygon formed by these inequalities must be seen in the plot.The polygon should be in a way represented by picture below.

채택된 답변

Matt J
Matt J 2021년 2월 2일
편집: Matt J 2021년 2월 2일
You can use lcon2vert,
to obtain the vertices V of the region. Then use plot(polyshape(V)).
A=[1,0;
1,-0.2699;
1,-0.3666;
-1,+3.5358
1,-13.5777];
b=[0,-4.6836,-10.0797,-3.912,140.2055].';
V=lcon2vert(A,b);
plot(polyshape(V))
  댓글 수: 13
Laxmi Akshaya Thela
Laxmi Akshaya Thela 2021년 2월 7일
How to apply grids for a 3d plot, my 3d plot is not very clear because of the small values.So,I want to apply grid to my plot.Please help me out with this issue.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Matt J
Matt J 2021년 2월 3일
There is also this File Exchange submission,
It does not require the vertices to be precomputed, and works for either 2D or 3D.

카테고리

Help CenterFile Exchange에서 Computational Geometry에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by