i want to print the variable in a button to the text edit

1 view (last 30 days)
for suppose i have a button named ratio, when i click on it ,i need to get the value on text edit in gui

Answers (1)

Walter Roberson
Walter Roberson on 10 Feb 2016
ratio = 17/51; %some calculated value
set(handles.textedit1, 'String', num2str(ratio)) %send it to the text edit box

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!