You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: serveflash.m
    path of file: ./repos/supermodeling/算法代码案例/蒙特卡罗算法/蒙特卡洛法/蒙特卡洛法
    
    the code of the file until where you have to start completion: function serveflash(xx,yy,zz)
global man1 mana1 mana2 mana3 mana4 mana5
global manb1 manb2 manb3 manb4 manb5
global manc1 manc2 manc3 manc4 manc5
global mand1 mand2 mand3 mand4 mand5
global mane1 mane2 mane3 mane4 mane5

    
function serveflash(xx,yy,zz)
global man1 mana1 mana2 mana3 mana4 mana5
global manb1 manb2 manb3 manb4 manb5
global manc1 manc2 manc3 manc4 manc5
global mand1 mand2 mand3 mand4 mand5
global mane1 mane2 mane3 mane4 mane5
        
switch xx
    case 1
            for ii = 1:10  %开始服务动画
                   face(:,1)=man1(:,1)+yy*(ii-1);
                   face(:,3)=man1(:,3)+yy*(ii-1); 
                   face(:,2)=man1(:,2)+zz*(ii-1);
                   face(:,4)=man1(:,4)+zz*(ii-1);
                   face(1,3)=0.0982;
                   face(1,4)=0.1381;
                   set(mana1,'position',[face(1,1) face(1,2)  face(1,3) face(1,4)])
                   set(mana2,'X',[face(2,1);face(2,3)],'Y',[face(2,2);face(2,4)])
                   set(mana3,'X',[face(3,1);face(3,3)],'Y',[face(3,2);face(3,4)])
                   set(mana4,'X',[face(4,1);face(4,3)],'Y',[face(4,2);face(4,4)])
                   set(mana5,'X',[face(5,1);face(5,3)],'Y',[face(5,2);face(5,4)]) 
                   MM(ii)=getframe;
            end