I am creating a GUI to run a code and want to import some input parameters from excel through GUI and transfer the same to the main .m file

조회 수: 2 (최근 30일)
GUI
  댓글 수: 2
Ingrid
Ingrid 2015년 6월 9일
and what is the question? what have you tried and were are you stuck?
vandana
vandana 2015년 6월 10일
편집: Walter Roberson 2015년 6월 10일
I want to pass input parameters from GUI to .m file
for exp.
I am taking bed_height as input in GUI and passing it to the .m file as bed_height1.
taking input in GUI as
bed_Height=str2num(get(hObject,'String'));
if(isempty(bed_Height))
set(hObject,'String','0')
guidata(hObject,handles);
data = getappdata(gcbf, 'metricdata');
data.bed_Height = bed_Height;
setappdata(gcbf, 'metricdata', data);
end
and passing it to .m file as
bed_height = data.bed_Height;
The problem is code is not giving any error but keeps running. how to pass inputs from GUI to .m file

댓글을 달려면 로그인하십시오.

채택된 답변

vandana
vandana 2015년 6월 17일
This problem is resolved
Thanks

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by