Info

This question is closed. Reopen it to edit or answer.

how i use to it variable global in GUI ?

1 view (last 30 days)
sadmi sidhoum
sadmi sidhoum on 28 Apr 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
i have signal i want load it ,it is as this SD2E201.dat just i want how get variable global in GUI ?

Answers (1)

Image Analyst
Image Analyst on 28 Apr 2015
Just declare the variable global in all functions that need to be able to access it (assign it or use it):
global myGlobalVariable; % Use whatever name your variable is.
Functions that have that line in them will see it, and functions that don't have that line in them will not see it.

Tags

Community Treasure Hunt

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

Start Hunting!