学习杂记十七:matlab app designer 给EditField赋值

        function startupFcn(app)
            imshow('picture00.jpg','parent',app.UIAxes);
            
            while(1) 
                [x,y]=ginput();
                x=round(x);
                y=round(y);
                app.EditField.Value=x;
                app.EditField2.Value=y;
                
            end
            
        end

 

你可能感兴趣的:(matlab)