Have a textbox in your GUI and set this textbox's value in your pushbutton callback
function pushbutton_callback(...)
%code to calculate A
set(handles.edit1,'Value',num2str(A)); %for example
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!