matlab的代码详细解释

function movebullet(~,~)
        planeop=[25,randi(345)+25];
        while control==1
            image(planeop(1)-25+1:planeop(1)+25,planeop(2)-25+1:planeop(2)+25,:)=plane_op;
            bullet(bullet(:,2)<50,:)=[];
            len=length(sum(bullet,2));
            bullet=bullet+[0,0;ones(len-1,1)*direction];
            show()
            image(planeop(1)-25+1:planeop(1)+25,planeop(2)-25+1:planeop(2)+25,:)=change;
            planeop=planeop+[10,0];part1=bullet(:,2); part2=bullet(:,1);
            a=find((part1<planeop(1)+25)&(part1>planeop(1)-25));
            b=find((part2<planeop(2)+25)&(part2>planeop(2)-25));
            c=intersect(a,b);
            if ~isempty(c)
                planeop=[25,randi(345)+25];
                bullet(c,:)=[];
            end
            pause(0.05)            
            if planeop(1)>435
                control=0;
                buttonName1=questdlg('You lose. What do you mean to do?','You lose','close','restart','close');
                if isempty(buttonName1)
                    buttonName1='end';
                end
                if strcmp(buttonName1,'restart')
                       clf; plane();
                else if strcmp(buttonName1,'close')
                            close all;
                    end
                end
           end
        end
    end

你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答

本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。

​​​​因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。