How to link m-files iwith a push button in GUI maltab
1 view (last 30 days)
Show older comments
I had a GUI interface, i wish to run my function which save in m-file with one of a push button in my GUI. Please show me the ways to handle this situation..thanks alot
0 Comments
Accepted Answer
Walter Roberson
on 17 Mar 2013
In the callback of your push button, just give the name of the function you wish to run. For example,
function pushbutton1_callback( hObject, event )
your_function_name_here();
end
2 Comments
Walter Roberson
on 17 Mar 2013
That is fine, or you could use
imshow(img, 'Parent', handles.axes1)
More Answers (0)
See Also
Categories
Find more on Interactive Control and Callbacks 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!