how can I generate a 3D surface having 3 equations with some inequalities? I have had no luck with this type of figures

3 views (last 30 days)
% 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));

Answers (0)

Community Treasure Hunt

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

Start Hunting!