App Designer: Push-button and keep certain variables in workspace

2 views (last 30 days)
I am using a push button. When I push it, I get a variable in my workspace. However when the push button function ends, all workspace variables are cleared. How can I store my variable in a safe place to not get cleared when the push button function ends?

Answers (1)

Matt J
Matt J on 17 Jul 2025
Edited: Matt J on 17 Jul 2025

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!