フィルターのクリア

Problem with global variables

2 ビュー (過去 30 日間)
rodrigo
rodrigo 2013 年 10 月 24 日
回答済み: rodrigo 2013 年 10 月 25 日
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.

採用された回答

rodrigo
rodrigo 2013 年 10 月 25 日
I have founded a webpage that help me to solve this problem! Very simple solution and very easy to implement..
Take a look to this document.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 10 月 25 日
In each GUI, you would use
global a
in each function that needed to access "a".

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by