writing two integer together into edit text.
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!