MATLAB: Display an answer in a text box for a gui

dipslay answergui

Best Answer

Assuming you have a static text label, with tag "tension" in that box, you can use set():
set(handles.tension, 'String', num2str(tension));