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

Subject: GUI

From: Ralph Schleicher

Date: 25 Oct, 2012 19:52:10

Message: 1 of 1

Debora <deboralabella17@gmail.com> writes:

> I just started to use matlab's graphical interfaces and I was
> wondering if there was a way to insert the variable, that I have
> defined global as they must be used in 3 different buttons, in the
> GUI's handles within in order to nn define always global.

setappdata(fig_handle, 'myvar', myvar);
myvar = getappdata(fig_handle, 'myvar');

--
Ralph

7279 days of Linux experience.

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