Problem with global variables
显示 更早的评论
Hello,
I have a GUI wich consists in 3 different GUI's.
Imagine: i want to declarrate in the first GUI a=100. Then, in the second GUI i want to use this variable "a", like this f=a+300.
how can i access the variable "a" from the second GUI ?
thanks a lot.
采纳的回答
更多回答(1 个)
Walter Roberson
2013-10-25
In each GUI, you would use
global a
in each function that needed to access "a".
类别
在 帮助中心 和 File Exchange 中查找有关 Variables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!