From: uninorte Pereira on 2 May 2010 18:20 Hi im making a gui, whe i press a button it has a script wich conatins a variable named freq, then i need to use that var in another callback, how can i use that var beacuse it seems it is erased at the end of the buttons callback. is there something like a semi-global variable only to be used and modified inside that interface by different buttons? thanks in andvance and sorry for my eng
From: Steven Lord on 3 May 2010 09:46 "uninorte Pereira" <asalebe(a)uninorte.edu.co> wrote in message news:hrktql$54g$1(a)fred.mathworks.com... > Hi > > im making a gui, whe i press a button it has a script wich conatins a > variable named freq, then i need to use that var in another callback, how > can i use that var beacuse it seems it is erased at the end of the buttons > callback. > > is there something like a semi-global variable only to be used and > modified inside that interface by different buttons? > > thanks in andvance and sorry for my eng http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f5-998352.html http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f13-998352.html -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: Frame Slider in Movie Player Next: Random phases using chaos model |