how can I generate a 3D surface having 3 equations with some inequalities? I have had no luck with this type of figures
3 次查看(过去 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!