Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
GUI Variable Sharing

Subject: GUI Variable Sharing

From: Garrett

Date: 13 Jul, 2010 19:00:24

Message: 1 of 3

Hey all,

I am working on a gui with multiple components and am having some troubles. I need to use and edit variables created in one component in multiple other components, is there a good way to do this?

-Garrett

Subject: GUI Variable Sharing

From: Mathew Thomas

Date: 13 Jul, 2010 19:10:21

Message: 2 of 3


Use "global" command. This enables you to use the variables in other functions as well.

Mathew

Subject: GUI Variable Sharing

From: Walter Roberson

Date: 13 Jul, 2010 19:18:40

Message: 3 of 3

Garrett wrote:

> I am working on a gui with multiple components and am having some
> troubles. I need to use and edit variables created in one component in
> multiple other components, is there a good way to do this?

No, there are just ways that are less painful or more flexible than others.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us