Declaring a global variable
1 回表示 (過去 30 日間)
古いコメントを表示
hello guys i need to declare and define a global variable X1 to 0 in a gui callback and i need to use this variable and its value 0 in another callback function.how do i do this.pls help
0 件のコメント
回答 (1 件)
William
2012 年 2 月 10 日
global X1 = 0 % use all caps for global
I would advise against using global variables as they can be difficult to debug sometimes. Just my 2 cents
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!