フィルターのクリア

not display in edit text box matlab GUI

4 ビュー (過去 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));
  1 件のコメント
raviranjan singh
raviranjan singh 2018 年 5 月 28 日
not working

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by