Save GUI after pressing pushbutton
显示 更早的评论
I made a GUI with three edit boxes, a value is entered in it, afterwards it should be saved after pressing a push button.
% --- Executes on button press in Table.
function Table_Callback(hObject, eventdata, handles)
% hObject handle to Tolerantietabel (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
Table=[ str2double(get(handles.T1Long,'String')), str2double(get(handles.T1Lat,'String')), str2double(get(handles.T1Vert,'String')];
Initially, the edit boxes have a value, which i choose (default value). but the user should be able to change that and press asave. after opening again it should show the new values.
How can is save the new entered values?
回答(1 个)
Azzi Abdelmalek
2013-1-14
0 个投票
You can use a mat file named for example 'initfile', which will be used to default setting in your opening function. Then when the user changes some of these values, update your matfile
2 个评论
Hello kity
2013-1-15
Ilham Hardy
2013-1-15
What exactly is the error? post the error mesage as well..
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!