필터 지우기
필터 지우기

not display in edit text box matlab GUI

조회 수: 2 (최근 30일)
raviranjan singh
raviranjan singh 2018년 5월 28일
댓글: Rik 2018년 5월 29일
i write a code:
fid = fopen('1.txt','r');
indata = textscan(fid, '%f', 'HeaderLines',1);
fclose(fid);
yourdata = indata{1};
set(handles.edit1,'%f',display(yourdata)); but the value is not display in edit text box. pls suggest what i change to display the number.
  댓글 수: 1
Rik
Rik 2018년 5월 29일
I re-opened this question. If you have trouble with an answer, ask for clarification instead of closing and posting a new one.

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

채택된 답변

Rik
Rik 2018년 5월 28일
uicontrol objects have a String property that you need to set. The line below should help you along.
set(handles.edit1,'String',sprintf('%f',yourdata));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by