How do I use uicontrol to assign a value to a variable?
Show older comments
If i have a uicontrol pushbutton, how do I make it so that when a button is depressed, it changes the value of a variable? Just change something like k = 'somestring' or some number, to 'someotherstring' or some other number.
2 Comments
Jan
on 27 Mar 2017
It depends on where this variable is existing: Do you mean the base workspace, a diagram, a Simulink object, a function, a MAT file?
Marcus Blackburn
on 27 Mar 2017
Accepted Answer
More Answers (0)
Categories
Find more on Migrate GUIDE Apps 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!