Re: problem with GUI
- From: bru <brukita84@xxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 13:43:34 -0400
Then i have to declare handle in the callback? I mean to write :
function hedit_fmin_Callback (hObject, eventdata, handle)
Bob wrote:
from
bru wrote:
Dear friends,
I'm new with GUI and i have to problem when i take the data
.it...
I do the next
--------------------------------------------------
function hboton_OK_Callback (hObject, eventdata)
function hedit_fmin_Callback (hObject, eventdata)
auxiliar=str2double(get(hObject,'String'));
%Ahora hemos de controlar que haya puesto realmente un numero
if isnan(auxiliar)
errordlg('Debes introducir un valor numerico en frec. min',
'Variable falsa', 'modal');
return
else
freqmin=auxiliar;
end
--------------------------------------------------
If i do it this way, Could I use the variable freqmin after? Or
should i use handle?¿?
Thanks for you help !!!
Try
handles.freqmin = auxiliar;
% Update handles structure
guidata(hObject, handles);
- References:
- problem with GUI
- From: bru
- problem with GUI
- Prev by Date: MI PLP
- Next by Date: Re: weird
- Previous by thread: Re: problem with GUI
- Next by thread: MI PLP
- Index(es):
Relevant Pages
|