|
Hi, can someone please help with my project.
On my GUI i have a text box and a push button. The string of the box is called value1.
CODE:
function value1_Callback(hObject, eventdata, handles)
function value1_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function pushbutton1_Callback(hObject, eventdata, handles)
set_param('model3/Constant5','Value', 'value1');
When i run this m file it opens the GUI window. However no matter what i type in the text box and press the push button the value that loads into the constant5 block on my model is the word 'value1'.
How do i make it so that it loads what i want from my text box in the GUI and not the actual 'value1' word?
thanks
|