- /
-
Cyber duck with a headset
on 9 Oct 2021
- 31
- 259
- 4
- 0
- 277
%CYBER DUCK CELEBRATING 20th ANNIVERSARY OF MATLAB CENTRAL
%Dennis Jung 10/08/21
[M,A,T]=sphere(20);
Y=0.2;
E=0.4;
S=0.6;
surf(M,A,T);
hold on;
rotate(surf(M*1.1,A*E,T+Y),[0,0,1],45);%headset
surf(M*E-S,A*E-S,T*E);%headset ear
surf(M*E+S,A*E+S,T*E);%headset ear
surf(M*S+S,A*S-S,T*Y-E);%mouth
surf(M*Y/2+E*2.4,A*Y-Y,T*Y);%right eye
surf(M*Y+Y,A*Y/2-E*2.4,T*Y);%left eye
shading interp;
axis equal;
camlight(55,-10);
colormap(white);
view([45,-15]);