Borrar filtros
Borrar filtros

Problem with global variables

2 visualizaciones (últimos 30 días)
rodrigo
rodrigo el 24 de Oct. de 2013
Respondida: rodrigo el 25 de Oct. de 2013
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.

Respuesta aceptada

rodrigo
rodrigo el 25 de Oct. de 2013
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.

Más respuestas (1)

Walter Roberson
Walter Roberson el 25 de Oct. de 2013
In each GUI, you would use
global a
in each function that needed to access "a".

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by