필터 지우기
필터 지우기

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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by