how can I generate a 3D surface having 3 equations with some inequalities? I have had no luck with this type of figures
조회 수: 2 (최근 30일)
이전 댓글 표시
% Plot the surface in 3D of the following equations, the figure is supposed to look as a mobius band making a triangular shape.
%Equation1=((u-(sqrt(3).*v))/2);
%Equation2=(3.141592-(8/sqrt(3))- (2*cos((sqrt(3).*u+v)/4)));
%Equation3=(2*sin(((sqrt(3)).*u+v)/4));
%u and v are parameters of the surface, but they are also inequalities.
%inequality 1 : -1 <= v <= 1;
%inequality 2 : ((-2*3.141592-v)/sqrt(3))) <= u <= ((2*3.141592-v)/sqrt(3)));
%%CODE
syms v u ;
X = ((u-(sqrt(3).*v))/2);
Y = (3.141592-(8/sqrt(3))- (2*cos((sqrt(3).*u+v)/4)));
Z = (2*sin((sqrt(3).*u+v)/4));
I=(v>=-1) & (v<=1) & (u>=((-2*3.141592-v)/sqrt(3))) & (u<=((2*3.141592-v)/sqrt(3)));
ezsurf(X(I),Y(I),Z(I));
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!