How can I click a push button programmatically in App Designer?
Show older comments
One of my pushbuttons when clicked does a bunch of calculations and I was wondering how to 'click' it in some other part of my code.
I know that I can create a helper function instead but I wanted to know if it was possible to just 'click' the button programmatically.
Accepted Answer
More Answers (1)
William
on 26 May 2023
Hi. Very new to appdesigner and gui building, but ... I have been able to programmatically push a button in my startup function using
app.ButtonPushed
seems to work very well. I can even "pre-check" checkboxes using some like
app.checkbox.value=1
and then I can programmatically push the button that uses this data. Very slick
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!