Show value of a callback function in uicontrol text
Show older comments
Hi,
I have a function:
function x=func()
x=12;
end
and I want to use the returned value x in another function as a callback value in a uicontrol text.
1 Comment
Walter Roberson
on 23 May 2021
x = func();
handles.NameOfUiControl.String = num2str(x);
Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!