Part 3 Your animation should contain at least the following: Translation and/or scaling Solution %% The story is a pretty simple one. A ship is trying to travel through universe through a wormhole clc close all clear all myaxes=axes(\'xlim\',[-5 5],\'ylim\',[-5 15],\'zlim\',[-4 4]); view(3); grid on; axis equal; hold on; %% Wormhole coordinates t = 0:pi/10:2*pi; [wormhole_x,wormhole_y,wormhole_z] = cylinder(2.2+2*cos(t)); %% Genaerating coordinates of cylinder , sphere and ellipse [cylinder_x cylinder_y cylinder_z]=cylinder([1 1]); [sphere_x sphere_y sphere_z]=sphere(); [elp_x elp_y elp_z]=ellipsoid(0,0,0,2,.5,.5); %% This is the ship h(1)=surface(cylinder_y,cylinder_z,cylinder_x); h(2)=surface(sphere_y,sphere_z,sphere_x); h(3)=surface(elp_y,elp_z,elp_x); h(4)=surface(elp_x,elp_z,elp_y); h(5)=surface(sphere_y,sphere_z+1,sphere_x); %%This is the wormhole and few stars scene1=surface(wormhole_y,wormhole_z*5+8,wormhole_x); scene2=surface(sphere_x*0.1-10,sphere_y*0.1,sphere_z*0.1+1); scene3=surface(sphere_x*0.1+5,sphere_y*0.1,sphere_z*0.1+1); scene4=surface(sphere_x*0.3-3,sphere_y*0.3-6,sphere_z*0.3+2); scene5=surface(sphere_x*0.3+3,sphere_y*0.3-1,sphere_z*0.3+2); scene6=surface(sphere_x*0.5-3,sphere_y*0.5-6,sphere_z*0.5+4); %%Creating a group object combinedobject=hgtransform(\'parent\',myaxes); set(h,\'parent\',combinedobject) drawnow %% Defining its rotation and translation X=zeros(21); Y=0:20/20:20; Z=zeros(21); A=0:2*pi/20:4*pi; %% Actually doing the animation for i=1:length(X) translation=makehgtform(\'translate\',... [X(i) Y(i) Z(i)]); resize=makehgtform(\'scale\',1-i/40); rotation=makehgtform(\'yrotate\',A(i)); set(combinedobject,\'matrix\',rotation*resize*translation); pause(0.2); end .