How to draw a second order cone relaxation using matlab?

조회 수: 3 (최근 30일)
Abdelrahman Aldik
Abdelrahman Aldik 2019년 10월 14일
답변: Abhisek Pradhan 2019년 10월 17일
Hello Dears
We know that X.Y=Z^2+Q^2 is a cone (lce cream cone or empty cone). I know how to draw this cone on Matlab. However, I don't know how to draw
X.Y>= Z^2+Q^2 (as we are fiiling the cone). Any help in doing that?
Regards
  댓글 수: 2
darova
darova 2019년 10월 15일
What you want you fiilnd the cone with?
Abdelrahman Aldik
Abdelrahman Aldik 2019년 10월 15일
It's line having a cone with a closed lid instead of having a empty cone with an open lid. I'm not sure if I'm clear enough?
Regards

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

답변 (1개)

Abhisek Pradhan
Abhisek Pradhan 2019년 10월 17일
patch() function can be used to create a polynomial fitting to the open end of the cone and putting it over it.
Following code shows simple way to generate a cone with closed lid.
N = 10;
r = linspace(1, 0, N);
[X,Y,Z] = cylinder(r, N);
figure(1)
surf(X,Y,Z);
patch(X,Y,Z);

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by