function MTB_Week11_text1
hndl = uicontrol('style','text','BackgroundColor','w','units',...
    'normalized','position',[0.3 0.475 0.4 0.05],'FontSize',15);
set(gcf,'WindowButtonMotionFcn',@(source,event)moveFcn(hndl));
end

function moveFcn(hndl)
    mousePos = get(gcf,'CurrentPoint');
    set(hndl,'String',sprintf('x:%3.0f | y:%3.0f',mousePos));
end
