how can I generate a 3D surface having 3 equations with some inequalities? I have had no luck with this type of figures
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
% 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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!