function pause_Callback2(src,eventdata)

if(strcmp(src.String,'Resume'))  %Is currently paused
    src.BackgroundColor = 'g';
    src.String = 'Pause';
else  %Is currently off
    src.String = 'Resume';
    src.BackgroundColor = 'r';
end

