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 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by