Display a result + unit in GUI in ,,static text,, field
조회 수: 2 (최근 30일)
이전 댓글 표시
I've wrote a porgram with a GUI and I can display a numerical result in a ,,static text,, field, but I want to be displayed an unit too. Is it possible with a ,set, command?
댓글 수: 0
채택된 답변
Sriram
2012년 8월 7일
yes... you can!
here is an easy way to do it
%%Just Concatenate :) 100 is the value to display along with the unit
your_display = [num2str(100) 'unit'];
set (handles.text,'string',your_display)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!