function pause_Callback(src,eventdata)

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

