Saving data from function i GUI
1 次查看(过去 30 天)
显示 更早的评论
Hi All,
I have the following code, where I want to save the values into the workspace for further processing. A number is previoucly defined, which finds ship properties in Shipdata_module. m. I can see the values being returned in the command window from the data file, but it does not save them. How can I do that ?
% --- Executes on button press in loadship.
function loadship_Callback(hObject, eventdata, handles)
% hObject handle to loadship (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
number = handles.number
[Lpp,B,D,T,Disp,Loa,AeA0,Dmax,z] = Shipdata_module(number)
0 个评论
采纳的回答
更多回答(2 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!