Passing variables between GUI in Matlab -


i new matlab , haven't got long produce interlinking gui. lot easier work specific examples. have found generic examples not know sections matlab functions , need edited. possible demonstrate code how pass information edittext's bladedesign.fig , how accessed in bladedesign.fig?

pushbutton4 submit button. edittext9 variable text box.

function edit9_callback(hobject, eventdata, handles) % hobject    handle edit9 (see gcbo) % eventdata  reserved - defined in future version of matlab % handles    structure handles , user data (see guidata)  % hints: get(hobject,'string') returns contents of edit9 text %        str2double(get(hobject,'string')) returns contents of edit9 double   % --- executes during object creation, after setting properties. function edit9_createfcn(hobject, eventdata, handles) % hobject    handle edit9 (see gcbo) % eventdata  reserved - defined in future version of matlab % handles    empty - handles not created until after createfcns called  % hint: edit controls have white background on windows. %       see ispc , computer. if ispc && isequal(get(hobject,'backgroundcolor'), get(0,'defaultuicontrolbackgroundcolor'))     set(hobject,'backgroundcolor','white'); end  % --- executes on button press in pushbutton4. function pushbutton4_callback(hobject, eventdata, handles) % hobject    handle pushbutton4 (see gcbo) % eventdata  reserved - defined in future version of matlab % handles    structure handles , user data (see guidata) close(gcf) openfig(bladedesign.fig) 

not sure understand question.

the fig doesn't "do" anyhthing, there, .m file can update fig, , fig reflect changes immediately

the %hints have there pretty it.

the hobject, object invoking call , try inserting break point (f12) in callback , inspecting have in there

in case want access other data "handles" variable has them (though on callbacks not on createfcn)

so handles.pushbutton4 , handles.edit9

are wones looking for


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -