How to access a variable of one callback function in another function in gui?
显示 更早的评论
I have browsed an image using a pushbutton and stored it in a variable(let it be 'sm'). Now I want this image('sm') in callback function of another pushbutton so that I convert that image here.
1 个评论
Stephen23
2018-3-6
If you are not using GUIDE I would recommend using nested functions: simple and intuitive. Otherwise use handles and guidata.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!