writing two integer together into edit text.

2 ビュー (過去 30 日間)
sermet
sermet 2014 年 4 月 10 日
回答済み: Mischa Kim 2014 年 4 月 10 日
a=1787;
b=4;
%I need to add b to the end of a, like this "17874". Then I need to write this number into edit text in GUI.

採用された回答

Mischa Kim
Mischa Kim 2014 年 4 月 10 日
Use something like
c = sprintf('%d%d',a,b);
set(handles.edit_text, 'String', c);
where the UI control is called handles.edit_text (or whatever it's called in your GUI).

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by