how could i extract the output of the included mfile in GUI callback function to edit text
조회 수: 1 (최근 30일)
이전 댓글 표시
hello i am a new user of matlab and GUI. i am doing a college project on GUI. i have included a script in callback function of pushbutton ,now i want to display it in edit box. that is i am unable to extract the output from the script file and pass it to edit text. how can i do that, kindly reply
댓글 수: 0
답변 (1개)
Dishant Arora
2014년 3월 11일
function pushbutton_callback()
Output = yourFunctionFile;
set(handles.edit1 , 'string' , Output)
댓글 수: 2
Dishant Arora
2014년 3월 11일
% To be mentioned under gui opening function
setappdata(0 , 'handlesEdit' , handles.edit1)
set(getappdata(0 , 'handlesEdit') , 'string' , Output) % in you script file
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!