gui in matlab?
Show older comments
hello
I create a button in my figure and I want when I pushe the button it returns value of 1 in to a variable. I wrote this code but I couldn't get the Output Value.
f = figure;
ax.Position = [75 75 325 280];
c = uicontrol('Style','pushbutton','Callback',@(src,event)BinSet);
function Output=BinSet
Output=1;
disp('successfull')
end
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown 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!