In the callback function for the button, use the assignin function to modify the value in the base workspace.
For ex.
modified_value = 100;
assignin('base','var', modified_value);
where ' var' is the variable to be modified (assuming you know which variable in the base workspace has to be modified)